Created
August 13, 2017 09:23
-
-
Save andreyshuster/1264c8502ce0fa6b2206c75602b116c1 to your computer and use it in GitHub Desktop.
oneliner rename files in folder to sequental 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
a=1; for file in *.jpg; do mv "$file" "${a}.jpg"; let a=a+1; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment