#!/bin/csh # tstring - C Shell script to print # good tstring samples from M4 # set today = `date -u +%Y%j` set can = m4 set ndays = 7 if ($#argv > 0) set can = $1 if ($#argv > 1) set ndays = $2 cd /oasis/$can/tstring echo " Total --------Good Samples by ID Number----------" echo "Day Samples #01 #02 #03 #04 #05 #06 #07 #08 #09 #10 #11" @ day = $today - $ndays while ( $day <= $today ) if ( -e $day ) \ awk -f /oasis/bin/tstringm4.awk day=$day $day @ day++ end