1#!/bin/tcsh -f 2 3if ("$1" == "-h" || $1 =~ "-help" || $1 == "") then 4 goto USAGE 5endif 6 7foreach img ($*) 8 set imgnoExt = `@NoExt $img pnm` 9 echo "running pnmtopng $img > $imgnoExt.png ..." 10 pnmtopng $img > $imgnoExt.png 11end 12 13goto END 14 15USAGE: 16 echo "Usage: `basename $0` <*.pnm>" 17 echo "uses pnmtopng to change the pnm images on command line to png" 18 echo "\012Ziad Saad (saadz@mail.nih.gov)\012LBC/NIMH/ National Institutes of Health, Bethesda Maryland\012" 19 goto END 20 21END: 22