Skip to content

Instantly share code, notes, and snippets.

@cdparra
Last active January 2, 2016 16:39
Show Gist options
  • Save cdparra/8331398 to your computer and use it in GitHub Desktop.
Save cdparra/8331398 to your computer and use it in GitHub Desktop.
Simple shell command to rename a batch of files (i.e., *.JPG to *.jpg)
for i in *.JPG; do mv "$i" `basename "$i" .JPG`.jpg; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment