Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

PowerShell: Search Text in Files

📅 2011-Oct-29 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ find, powershell, search ⬩ 📚 Archive

### 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"

Tried with: PowerShell 2.0