#!/bin/csh # tstring - C Shell script to print # good tstring samples # set today = `date -u +%y%j` set can = m3 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 #00 #01 #02 #03 #04 #05 #06 #07 #08 #09" @ day = $today - $ndays while ( $day <= $today ) if ( -e $day ) \ awk -f /oasis/bin/tstring.awk day=$day $day @ day++ end