Rename all files in a folder from upper to lower case.

Submit to reddit

Sometimes is needed to have all files in a folder in the same case. Here’s a small script to rename all files in the folder to lower case:

for i in *; do mv $i `echo $i | tr [:upper:] [:lower:]`; done