Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.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
Search windows 7 findstr_Search_Grep_Windows 7 X64_Findstr - Fatal编程技术网

Search windows 7 findstr

Search windows 7 findstr,search,grep,windows-7-x64,findstr,Search,Grep,Windows 7 X64,Findstr,我使用了findstr,试图在输出文件中查找一些关键字错误。我将所有错误代码保存在finddata.txt中。搜索确实运行了一段时间,但我查看了结果,搜索结果文件中的每一行都有$findstr/c:“ORA-”text.err。结果文件很大,所以我知道出了问题 显然,我只需要在findstr为我找到东西时才需要结果 findstr/g:finddata.txt/f:text.err>text\u err.out --以下是MSFT technet手册: 非常感谢您的帮助。在文档中,您将看到:

我使用了
findstr
,试图在输出文件中查找一些关键字错误。我将所有错误代码保存在
finddata.txt
中。搜索确实运行了一段时间,但我查看了结果,搜索结果文件中的每一行都有
$findstr/c:“ORA-”text.err
。结果文件很大,所以我知道出了问题

显然,我只需要在
findstr
为我找到东西时才需要结果

findstr/g:finddata.txt/f:text.err>text\u err.out

--以下是MSFT technet手册:


非常感谢您的帮助。

在文档中,您将看到:

/f: file   : Reads file list from the specified file.
对于要求FindStr在输入行中查找具有数据名称的文件的每个输入行,您不需要这样做。只需在行上指定文件

卸下/f:

findstr /g:finddata.txt text.err > text_err.out

我得到了一个巨大的文件生成相同的问题。让我一次测试一个搜索字符串,并报告它是否有效。