Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
unix shell脚本,用于搜索目录子目录(多个)中的所有文件_Shell_Unix - Fatal编程技术网

unix shell脚本,用于搜索目录子目录(多个)中的所有文件

unix shell脚本,用于搜索目录子目录(多个)中的所有文件,shell,unix,Shell,Unix,我想从一个目录的多个子目录中的所有文件中提取公共数据? 请给我推荐一个脚本。使用grep-Hr“搜索模式”/path/dir使用grep-R。选项-R表示递归。是否只搜索子目录子目录中的文件?还是“不止一个”仅仅意味着有多个文件?

我想从一个目录的多个子目录中的所有文件中提取公共数据?
请给我推荐一个脚本。

使用
grep-Hr“搜索模式”/path/dir
使用
grep-R
。选项
-R
表示递归。是否只搜索子目录子目录中的文件?还是“不止一个”仅仅意味着有多个文件?