我的操作系统是:Centos Desktop。
我想搜索文本字符串
在目录中的任何文件内
/usr/test/
最佳答案
尝试 grep string -r/usr/test
将搜索/usr/test 和所有子目录
关于linux - 如何在/usr/test/only目录下的 'string'内搜索 'any file',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18179647/