Last active
October 28, 2015 20:55
-
-
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 .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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