[geeks] ksh for loop question

Jochen Kunz jkunz at unixag-kl.fh-kl.de
Fri May 10 12:40:47 CDT 2002


On 2002.05.10 17:54 Brian Hechinger wrote:

> for files in `cat file_list.txt`; do
>   wget "http://www.server.com/$files"
> done
One file per line? 
if [ x$ANSWER = "xYES" ] ; then
	cat file_list.txt | while read a ; do wget "$a" ; done
fi
-- 



tsch,
         Jochen

Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/



More information about the geeks mailing list