#!/bin/tcsh -f set dd = $cwd:t set flist = ( *19{0,9}Two.txt ) cd .. foreach n ( $flist ) ./cover1t < $dd/$n > $dd/${n:r}.coverage end