Skip to content

Instantly share code, notes, and snippets.

Last active October 12, 2015 03:12
What would you like to do?
grep-like posh Select-String Pipe

As close to grep as I have found so far:

<some-cmd> | Out-String -Stream | Select-String [options] <some-string>

Select-String's -Context option works pretty well ... so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment