Posted By

danfsmith on 02/03/11


Tagged

get-content


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

wirenaught


Replace content from files


 / Published in: Windows PowerShell
 

  1. $findme = Get-Content C:\findme.txt
  2. $replaceme = Get-Content C:\replacewith.txt
  3. (Get-Content C:\WaldenWWW\WaldenWWW\Walden-Difference.htm) -Replace $findme,$replaceme

Report this snippet  

You need to login to post a comment.