Skip to content

Instantly share code, notes, and snippets.

@ashwin
Created May 26, 2012 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashwin/2792489 to your computer and use it in GitHub Desktop.
Save ashwin/2792489 to your computer and use it in GitHub Desktop.
Search text in files using PowerShell
### Search "foo_bar" recursively in all files in current directory
# Verbose
Get-ChildItem -Recurse | Select-String "foo_bar"
# Short
ls -r | Select-String "foo_bar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment