Powershell scripts for Sharepoint 2010
#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"
replace | replace string | -replace | set-content | file
© 2012 All rights reserved.