Skip to content

Instantly share code, notes, and snippets.

@t0nik0
Created April 28, 2020 17:47
Show Gist options
  • Save t0nik0/495c2680328a710f3f3cf328a33339c9 to your computer and use it in GitHub Desktop.
Save t0nik0/495c2680328a710f3f3cf328a33339c9 to your computer and use it in GitHub Desktop.
rename files with names like "1. filename" to "01. filename" (powershell)
Get-ChildItem | Rename-Item -NewName {$_.name -replace "^(\d)\. ",'0$1. ' } -whatif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment