Created
January 25, 2013 15:57
-
-
Save makokal/4635508 to your computer and use it in GitHub Desktop.
Batch rename a number of files appending 0s before extension to preserve alphabetical ordering e.g. after collecting images from camera to make a video with mencoder
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
# EXT is the extension of the files | |
rename 's/(\d+)\.EXT/sprintf("%03d.EXT", $1)/e' *.EXT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment