Skip to content

Instantly share code, notes, and snippets.

@icaromh
Created April 22, 2016 21:12
Show Gist options
  • Save icaromh/b1a05f199aa0811cd94a97b05a64b9b4 to your computer and use it in GitHub Desktop.
Save icaromh/b1a05f199aa0811cd94a97b05a64b9b4 to your computer and use it in GitHub Desktop.
Rename all files in a folder setting to lower case
for FILENAME in *; do NEWFILENAME=$(echo "$FILENAME" | tr '[:upper:]' '[:lower:]' | tr ' ' '_'); mv "$FILENAME" "$NEWFILENAME"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment