[geeks] ksh for loop question

David Passmore dpassmor at sneakers.org
Fri May 10 11:25:08 CDT 2002


On Fri, May 10, 2002 at 12:10:02PM -0400, Brian Hechinger wrote:
> 
> i should smack you on principle. ;)

Well, if you can make it to Dulles, VA in the next half an hour, feel
free... I'm going to lunch at 1.

> > cat file_list.txt | perl -n -e 'system("wget http://www.server.com/$_");'
> 
> oops, looks like there are () in the file names as well (friggin windows users)
> which blows this up quite nicely. ;)

okay, how about

cat file_list.txt | perl -n -e 'system("wget \"http://www.server.com/$_\"");'

David



More information about the geeks mailing list