Skip to content

Instantly share code, notes, and snippets.

@regisbsb
Created October 1, 2015 16:50
Show Gist options
  • Save regisbsb/8d44651fa907c3177c37 to your computer and use it in GitHub Desktop.
Save regisbsb/8d44651fa907c3177c37 to your computer and use it in GitHub Desktop.
PowerShell regex file rename
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