[geeks] ksh for loop question

Greg A. Woods woods at weird.com
Fri May 10 21:25:21 CDT 2002


[ On Friday, May 10, 2002 at 18:38:31 (-0500), doctor obnox son of a bitch wrote: ]
> Subject: Re: [geeks] ksh for loop question
>
> On Fri, May 10, 2002 at 09:12:09AM -0700, Gregory Leblanc had the audacity to opine:
> > On Fri, 2002-05-10 at 08:54, Brian Hechinger wrote:
> > > ok, i have a list of files that unfortunately have spaces in them.  i'd like
> > > to get this list of files from a server using wget, so i was looking to just
> > > use a for loop to go and get them all, for example:
> > > 
> > > for files in `cat file_list.txt`; do
> > >   wget "http://www.server.com/$files"
> 
>  cat file_list.txt| awk print '{wget "http://www.server.com/" $1}' | sh

You sure didn't test that very well did you!  :-)

-- 
								Greg A. Woods

+1 416 218-0098;  <gwoods at acm.org>;  <g.a.woods at ieee.org>;  <woods at robohack.ca>
Planix, Inc. <woods at planix.com>; VE3TCP; Secrets of the Weird <woods at weird.com>



More information about the geeks mailing list