Created
October 1, 2015 16:50
-
-
Save regisbsb/8d44651fa907c3177c37 to your computer and use it in GitHub Desktop.
PowerShell regex file rename
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls | Rename-Item -NewName {$_ -replace 'Season 2 EP(\d\d) .*.mkv', 'The Simpsons S02E$1.mkv' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment