grep 文件内容搜索

比如现在我们要查找在/home/userlan/目录中哪些文件中包含foobar这个关键字

1. 打开终端
2. 输入命令 grep -rl "foobar" /home/userlan/

原文地址:https://www.cnblogs.com/yizhinantian/p/3488656.html