[geeks] ksh for loop question

Kurt Huhn kurt at k-huhn.com
Fri May 10 11:11:22 CDT 2002


> for files in `cat file_list.txt`; do
>   wget "http://www.server.com/$files"
> done
> 
> this of course fails misserably since for splits by whitespace.  how do i do
> something like this, but split by line not by whitespace?  and please don't
> say perl.
> 

Can you use the special string for "space" - %nbsp or %20 or whatever it
is...
-- 
Kurt
kurt at k-huhn.com
Editor: "We need a new food critic, someone who doesn't immediately
poo-poo everything he eats." 
Homer: "Naw, that usually takes a few hours."



More information about the geeks mailing list