grep -r -n "your text" *
其中,参数-r为递归搜索,-n为显示行号,末尾的星号为搜索所有文件。
用grep递归搜索,布布扣,bubuko.com
用grep递归搜索
原文:http://www.cnblogs.com/nicebear/p/3581894.html