grep

查询信息

grep '1345' test.csv

查询信息,统计

grep '1345' test.csv | wc -l
grep '1345' test.csv | awk '{print NR, $0}'
grep '1345' test.csv | awk -F ',' '{if($1==9) print $0}' | awk '{print NR, $0}'

你可能感兴趣的:(grep)