需求: linux脚本统计某字符串在文件中那行出现 实现: more logfile.txt |grep 'headee' -n 摘自:http://www.xhuojia.com/zhuanlan/2755510772.html