Skip to content

Instantly share code, notes, and snippets.

@FrankDeGroot
Created November 7, 2013 11:14
Show Gist options
  • Select an option

  • Save FrankDeGroot/7353008 to your computer and use it in GitHub Desktop.

Select an option

Save FrankDeGroot/7353008 to your computer and use it in GitHub Desktop.
Rename solution file
dir * -r | rename-item -newname { $_.name -replace "replaceme","" }
dir * -r | attrib -r $_.fullname
dir * -r | ? { !$_.psiscontainer } | % { (get-content $_.fullname | % { $_ -replace "replaceme","withme" } ) | set-content $_.fullname }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment