Replace multiple strings in file

20/09/2013 17:48

#Replace multiple strings in file

#Save it to another file

(

    Get-Content "c:\myfile.txt") | Foreach-Object {

        $_ -replace "person", "user" `

        -replace "Place", "City"`

    } | Set-Content "c:\myfileNext.txt"