Skip to content

Instantly share code, notes, and snippets.

@posaunehm
Created August 20, 2012 09:00
Show Gist options
  • Save posaunehm/3402484 to your computer and use it in GitHub Desktop.
Save posaunehm/3402484 to your computer and use it in GitHub Desktop.
Rename contens of files under specified path
ls $PATH -Recurse -Include "$EXT" | %{$temp = (cat $_.FullName) -replace $OLDNAME,$NEWNAME; $temp | Out-File -Encoding default -FilePath $_.FullName}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment