我正在尝试获取文件中子字符串“id”的数量并将其保存到文件中,我尝试这样做:
for /F %N in ('"C:\Program Files (x86)\GnuWin32\bin\grep.exe" -o "id" %TEMP%\jiraoutput.txt ^| "C:\Program Files (x86)\GnuWin32\bin\grep.exe" -c "id"') do set "NUM=%N"
但我明白:
"C:\Program" is not recognized as an internal or external command, operable program or batch file