#! /bin/csh -f -e # Reviews all run-povray outputs in the current directory set pics = ( `ls 9*/p.{gif,ppm,pgm}` ) ( xv ${pics} >& /dev/null ) & /bin/rm -f .cleanup foreach g ( 9* ) echo $g echo 'remove-dated-dir $g' >> .cleanup if ( ! ( ( -r $g/p.ppm ) || ( -r $g/p.pgm ) || ( -r $g/p.gif ) ) ) then ls -l $g | sed 's/^/ /g' endif end