Linux 操作文档命令

 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
posted @ 2022-12-03 09:09  星火燎猿*  阅读(8)  评论(0编辑  收藏  举报