#!/bin/tcsh
if ( $#argv >
0 ) then
set subjects = ( $argv
)
else
set subjects = ED
endif
#===========================================================================
# Above command
will run script for all our subjects - ED, EE, EF - one after
# the other if,
when we execute the script, we type: ./@analyze_ht05 ED EE EF.
# If we type
./@analyze_ht05 or tcsh @analyze_ht05, it'll run the script only
# for subject
ED. The user will then have to go
back and edit the script so
# that 'set
subjects' = EE and then EF, and then run the script for each subj.
#===========================================================================
foreach subj
($subjects)
cd $subj