linux查找某个文件中单词出现的次数

文件名称:list

查找单词名称:test

操作命令:

               (1)more list | grep -o test | wc -l

               (2)cat list | grep -o test | wc -l

               (3) grep -o test list | wc -l

原文地址:https://www.cnblogs.com/onmyway20xx/p/4387133.html