Linux 操作文档命令

时间:2021-02-10 13:13:36
 grep "车牌号" 20161126.txt
grep "车牌号" 20161126.txt | awk -F " " '{print $NR}'
grep "车牌号" 20161126.txt | awk -F " " '{print $NE}'
grep "车牌号" 20161126.txt | awk -F " " '{print $NF}'
grep "车牌号" 20161126.txt | awk -F " " '{print $NF}' |uniq -c
grep "车牌号" 20161126.txt | awk -F " " '{print $NF}' |uniq -c |grep -vE "^2"
grep "车牌号" 20161126.txt | awk -F " " '{print $NF}' |uniq -c |grep -ve "^2"
grep "车牌号" 20161126.txt | awk -F " " '{print $NF}' |uniq -c |grep -E "^2"
grep "车牌号" 20161126.txt | awk -F " " '{print $NF}' |uniq -c |grep -E /^2/
grep "车牌号" 20161126.txt | awk -F " " '{print $NF}' |uniq -c |grep -E "^2"
grep "车牌号" 20161126.txt | awk -F " " '{print $NF}' |uniq -c |grep -e "^2"
grep "车牌号" 20161126.txt | awk -F " " '{print $NF}' |uniq -c |grep -E ^2
grep "车牌号" 20161126.txt | awk -F " " '{print $NF}' |uniq -c |grep -qE ^2
grep "车牌号" 20161126.txt | awk -F " " '{print $NF}' |uniq -c |grep -qE "^2"
grep "车牌号" 20161126.txt | awk -F " " '{print $NF}' |uniq -c |wc
grep "车牌号" 20161126.txt | awk -F " " '{print $NF}' |uniq -c |awk -F " " '{if($1=="2")print $0}'
grep "车牌号" 20161126.txt | awk -F " " '{print $NF}' |uniq -c |awk -F " " '{if($1=="2" && $2!="=")print $0}'
grep "车牌号" 20161126.txt | awk -F " " '{print $NF}' |uniq -c |awk -F " " '{if($1=="2" && $2!="=")print $0}' |wc
grep "车牌号" 20161126.txt | awk -F " " '{print $NF}' |uniq -c |wc