Created
January 4, 2018 09:44
-
-
Save tuttelikz/7df64c323ac94dd120f1a1f4ebcfa094 to your computer and use it in GitHub Desktop.
Rename filename bash
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
num=0; for i in *; do mv "$i" "$(printf '%04d' $num).${i#*.}"; ((num++)); done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment