按内容查询文件

grep -r "test" 1.txt 2.txt ...

grep -r "test" *

-r 递归

-n行号

-l文件名,小写L

-i不区分大小写 

原文地址:https://www.cnblogs.com/xiaomacs/p/11697263.html