Skip to content

Instantly share code, notes, and snippets.

@rixtox
Created March 26, 2017 12:30
Show Gist options
  • Save rixtox/74b4e108b7541085e3bae46dfbc575ea to your computer and use it in GitHub Desktop.
Save rixtox/74b4e108b7541085e3bae46dfbc575ea to your computer and use it in GitHub Desktop.
Get-ChildItem .\* -Include *.ass | Rename-Item -NewName { $_.Name -replace '^.*?(\d+).*(\.\w+)$','$1$2' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment