Skip to content

Instantly share code, notes, and snippets.

@ericoporto
Last active October 28, 2015 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericoporto/8b03ce61538e64c6e4da to your computer and use it in GitHub Desktop.
Save ericoporto/8b03ce61538e64c6e4da to your computer and use it in GitHub Desktop.
Really simple bash script to rename all files in current directory to lower case. Ex: File-Name.mD becomes file-name.md .
#!/bin/bash
#lower case all files in running directory
for file in *
do
lowercase=`echo $file | tr '[A-Z]' '[a-z]'`
mv "$file" "$lowercase"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment