Skip to content

Instantly share code, notes, and snippets.

@drewlustro
Created August 25, 2016 00:04
Show Gist options
  • Save drewlustro/19ac34ac1ae97d415ed67a1a7f343b59 to your computer and use it in GitHub Desktop.
Save drewlustro/19ac34ac1ae97d415ed67a1a7f343b59 to your computer and use it in GitHub Desktop.
Batch change filename/extension to lowercase
# http://stackoverflow.com/questions/7787029/how-do-i-rename-all-files-to-lowercase
for f in *; do mv "$f" "$f.tmp"; mv "$f.tmp" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment