#!/bin/csh

foreach d ( 1708?? ) 
  if( -d $d ) then
     cd $d
     set chk = `ls -1 *.ps|wc -l`
     if( $chk != 0 ) then
       /usr/bin/mogrify -rotate 90 -format jpg *.ps
     endif
  endif
  cd /pwing1/vlf/vlfmam/spectrum/2017
end
