Created
August 4, 2016 10:52
-
-
Save ruimarinho/7f3e13a5856eda0cdad1276d4c25b46d to your computer and use it in GitHub Desktop.
Rename files using index sequence via the `rename` util
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
brew install rename | |
rename -g 's/\d{2}-/$N-/' -N 01 'dir/*.ext' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment