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