Emulating Grep in Powershell
Posted on | March 16, 2009 | 1 Comment
Emulating Grep in Powershell. The option presented is to perform a grep on several files.For a search in one file, with results going to output.txt
select-string -pattern "{pattern}" -caseSensitive c:\path\to\file.txt > output.txtOne note: The lines wrapped at the width of the command window, even when redirected to a file.
Comments
One Response to “Emulating Grep in Powershell”
Leave a Reply



















April 9th, 2009 @ 1:00 am