I had to write this, and as much as it is useless, I thought: 'bah! I might as well share it...'
Code:
#!/bin/bash -
#===============================================================================
#
# FILE: up2low.sh
#
# USAGE: ./up2low.sh
#
# DESCRIPTION: converts upper to lower case for the directory you're in
#
# OPTIONS: ---
# REQUIREMENTS: tr
# BUGS: ---
# NOTES: ---
# AUTHOR: iesaya (---)
# COMPANY: ---
# CREATED: 01/27/2010 08:04:51 PM CET
# REVISION: ---
#===============================================================================
for n in `ls`
do
i=`echo $n | tr [:upper:] [:lower:]` #sets upper to lower in var
if [ -e $i ]; then
echo "file $i already exists"
else
echo "moving $n to $i"
mv $n $i &> /dev/null
fi
done
echo "done"
exit 0