#!/bin/sh - # # Rename files to all lowercase filenames. # if [ -z "$1" ]; then echo "Usage: `basename $0` file ..." exit 1 fi while [ $# -gt 0 ]; do mv -i "$1" `echo "$1" | tr '[A-Z]' '[a-z]'` shift done # EOF