Skip to content

Instantly share code, notes, and snippets.

@wyanez
Last active December 22, 2015 17:59
Show Gist options
  • Save wyanez/6509582 to your computer and use it in GitHub Desktop.
Save wyanez/6509582 to your computer and use it in GitHub Desktop.
Multiple Rename Files (*.JPG to *.jpg)
for f in `ls *.JPG`; do mv $f ${f%JPG}jpg; done;
#Using Parameter Expansion ${f%...} see http://mywiki.wooledge.org/BashFAQ/073
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment