#!/bin/tcsh 

# script that scans the whole directory and change all filenames to lowercases, 
# herefore it uses tr (translate)
# note the use of the backquote to invoke the command dir and echo

#echo 'start script files'

foreach file ( `dir` )
 
  set file2=`echo $file | tr A-Z a-z`

  echo "converts $file to $file2"
  mv $file $file2
end

#echo 'end script files' 
