命令:

grep 'word' filename

 

在多个文件中查找:

grep 'word' file1 file2 file3

 

 

更多用法参考:
https://www.howtoforge.com/tutorial/linux-grep-command/