#powershell Search For Text in Multiple Files/Folders

dir *.ps1,*.txt -recurse | % {
Write-Verbose $PsItem.Fullname -verbose; gc $PsItem.Fullname |
sls 'Remove' -Context 2,3 }

Bookmark the permalink.

Leave a Reply