<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/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)


</pre></body></html>