#!/bin/csh -f

foreach file(2011???/*F.txt)
   set fname = `echo $file:t:r`
   #echo $fname
   set year = `echo $fname | cut -c1-4`
   #echo $year
   set jday = `echo $fname | cut -c5-7`
   cat $file | grep WQM | nawk '/\./{print $0}' | sed -e 's/WQM/'"$year"'\ '"$jday"'/g'
   

end





exit(0)


