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