Is there a way to fluidly stream CMD standard output to PowerShell to Select-String?
I have tried every method I can find, but every way I find stores the info in a variable before piping it to be worked with. It has to be a stream because the standard out can be well over 20GBs in size and ends up causing an out of memory exception before the process crashes.
Here is the command I have been using:
gunzip.exe -c "*_2015-06-05_*" |powershell.exe "& {$input | select-string -pattern '1292681581' | Out-File C:\Users\xadministrator\desktop\test2.txt -append}"
gunzip.exe -c "_2015-06-05_*" | Select-String -Pattern '1292681581' | Out-File: ...EDIT: Ooooh you're running this from CMD itself. Right.