PowerShell equivalent of egrep
:
Select-String <string>
and egrep -r
:
dir -Recurse | Select-String <string>
Example, search all .h files for the string "text":
dir -Include *.h -Recurse | Select-String text
Example, rename all text files in the current directory to have a .puml extension instead of .txt.
Get-ChildItem -Filter "*.txt" | Rename-Item -NewName {$_.name -replace 'txt','puml' }