Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andreyshuster/1264c8502ce0fa6b2206c75602b116c1 to your computer and use it in GitHub Desktop.
Save andreyshuster/1264c8502ce0fa6b2206c75602b116c1 to your computer and use it in GitHub Desktop.
oneliner rename files in folder to sequental numbers
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