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

版权声明:@抛物线 https://blog.csdn.net/qq_28513801/article/details/89480402

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

持续学习、持续收获才能带来持续的满足和快乐!

猜你喜欢

转载自blog.csdn.net/qq_28513801/article/details/89480402