Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.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
“怎么做?”;grep-rn<;模式>&书信电报;dir>&“——”除了一些特定的文件?_Grep - Fatal编程技术网

“怎么做?”;grep-rn<;模式>&书信电报;dir>&“——”除了一些特定的文件?

“怎么做?”;grep-rn<;模式>&书信电报;dir>&“——”除了一些特定的文件?,grep,Grep,以下命令对我无效: grep -rn --exclude={spec_file1,spec_file2} <pattern> <dir> grep-rn--exclude={spec_file1,spec_file2} 如何强制grep不在spec\u文件1和spec\u文件2中搜索?我发现: grep-rn--exclude=spec_file1--exclude=spec_file2显示精确的命令字符串及其输出。

以下命令对我无效:

grep -rn --exclude={spec_file1,spec_file2} <pattern> <dir>
grep-rn--exclude={spec_file1,spec_file2}
如何强制
grep
不在
spec\u文件1
spec\u文件2
中搜索?

我发现:


grep-rn--exclude=spec_file1--exclude=spec_file2

显示精确的命令字符串及其输出。