grep 统计文件中某个字段出现的次数

cat 1.txt | grep -o "学术型" | wc -l

猜你喜欢

转载自www.cnblogs.com/wangylblog/p/13376282.html