candland

@candland rss self
July 25th 2006

Powershell Text Replace

Search a text file line by line, replacing text using regex’s.

cat ‘file.txt’ | foreach { $_ -replace ‘find-text’, ‘replace-text’ }

blog comments powered by Disqus