michabbb
5/29/2015 - 7:29 PM

rename files to lower

rename files to lower

#!/bin/sh
x=$(find -name '*[A-Z]*');
for i in $x; do
        if [ -f "$i" ]
        then
                LOWER=$(echo "$i"|tr [:upper:] [:lower:]);
                echo "move ${i} to ${LOWER}";
                mv $i $LOWER
        fi
done