Created
April 28, 2020 17:47
-
-
Save t0nik0/495c2680328a710f3f3cf328a33339c9 to your computer and use it in GitHub Desktop.
rename files with names like "1. filename" to "01. filename" (powershell)
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
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