Last active
June 19, 2016 06:16
-
-
Save matsub/63892a0f224020968822 to your computer and use it in GitHub Desktop.
rename bulk files to sequential numbers.
This file contains hidden or 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
ary=(`ls -1 *.*`);for i in $(seq -w `ls -U1 | wc -l`);do;mv $ary[i] $i"."${ary[$i]##*.};done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment