#! /bin/csh # # .csh snipet to take input interactively and use it # to run other scripts sequentially # with command line arguments. # # Use as you see fit. # # Andreas Muenchow [MacBook Pro OS X 10.5.8] # University of Delaware # June-6, 2012 # rm all.log echo -n 'Enter first file number (e.g. 1): ' set Start = $< echo -n 'Enter last file number (e.g. 1): ' set End = $< @ i = $Start # if ($Start <= 9 && $End <= 9) then while ($i <= $End) ./get-data.csh 00$i @ i = $i + 1 end else if ($End >= 10) then while ($i <= 9) ./get-data.csh 00$i @ i = $i + 1 end while ($i <= $End) ./get-data.csh 0$i @ i = $i + 1 end else if ($Start >= 10) then while ($i <= $End) ./get-data.csh 0$i @ i = $i + 1 end endif end: