#!/bin/csh -f # renames all the files in current directory to all lowercase characters foreach f ( * ) if ( -f $f ) then set n = `/usr/bin/echo $f | /usr/bin/tr '[A-Z]' '[a-z]'` if ( ! -f $n ) then /usr/bin/echo $0 ": Renaming" $f "to" $n /usr/bin/mv $f $n endif endif end