Subj : csh: how to go into each sub dir and call an executable To : comp.os.linux From : John Black Date : Thu Jul 29 2004 10:13 am Hi, Let's say there are many many sub-directories under the current directory, and all sub-dir is named like "sub00", "sub01", "sub02", etc., under each sub-dir there is an executable, a.out. What I want is a script or command, which can go to each sub directory and call a.out and re-direct the dump out from a.out to a file, something like cd sub00 a.out > log I am not familiar with c-shell program, is such command/script on top of your mind? Thanks. .