#!/bin/sh if [ $# != 1 ]; then echo 1>&2 Usage: $0 dir exit fi cd ./$1 for orig in * do new=`echo $orig | tr "a-z" "A-Z"` mv $orig $new done