"FIND: Parameter format not correct" and "FINDSTR: Write error" with Pipes
Solution 1:
Use quotation marks on parameter of find /c "foo"
.
Solution 2:
I was able to directly do what I needed to do with this syntax:
find.exe """Find This""" *.log
With the TRIPLE double quotes, I think 2 of them get consumed by POSH, leaving the single quote for FIND to see.. This worked fine for me on a Server 2012 R2..
Solution 3:
The "string"
parameter is compulsory in find
. Try piping findstr
to:
find /c /v ""
Solution 4:
This also works:
find `"keyword`"