#!/bin/sh

# fn2lwr  Converts filenames to lowercase
 
if [ $# -eq 0 ]; then
    echo "usage: fn2lwr <filename>"
    exit 
fi

for i in "$@"; do
    lower=`echo $i | tr "[:upper:]" "[:lower:]"`
    echo "Renaming $i"
    mv "$i" "$lower"
done 

echo "Done"
.
