#! /bin/csh -f
# $Id: rot90,v 1.3 2004/05/24 00:55:18 mpound Exp $
#

if ( $#argv == 0 ) goto Usage

foreach file ($*)
   if (-e $file) then
      echo Rotating $file by 90 degrees clock wise
      mv $file $file.$$
      convert -rotate 90 $file.$$ $file
      mv $file.$$ /tmp
   endif
end
exit 0

Usage:
echo "Usage: $0 <filenames>  "
echo "(filenames typically wildcarded)"
exit 1

