[geeks] ksh for loop question

doctor obnox son of a bitch drobnox at visi.com
Fri May 10 18:38:31 CDT 2002


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

-- 
Here's that flapjack                      ........Eric J. Gustafson
Put it in your pocket, 'til I get back    .........................
Goin' downtown, to see a man              .........................
Ain't got time to shake your hand         .........drobnox at visi.com



More information about the geeks mailing list