我使用以下命令在目录结构中递归地查找字符串.
find . -exec grep -l samplestring {} \;
但是当我在一个大型目录结构中运行命令时,会有一个很长的列表
grep: ./xxxx/xxxxx_yy/eee: Is a directory grep: ./xxxx/xxxxx_yy/eee/local: Is a directory grep: ./xxxx/xxxxx_yy/eee/lib: Is a directory