Friday, February 26, 2010

Rename any matches from all files

get-childitem -Path *est*.txt | rename-item -NewName {$_.name -replace "est",
"iag"}

http://andrwwatt.wordpress.com/2006/05/13/limitations-of-the-rename-item-cmdlet/

No comments:

Post a Comment