我使用以下命令在目录结构中递归地查找字符串.
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