Replace a string inside a list of files

Sometimes we need to replace a character string in a flat file.One possible method could be to use a tool, like notepad++, and open the set of files and use the scan replace options.But a quick way is again using PowerShell as below: ls “\cb.n.lo\dfs\reg01\interfaces\T24\From\523.Asn\LU0010001\DOC\NES-TEST\*.xml” -rec | %{ $f=$_; (gc $f.PSPath) | %{ $_ -replace…