[kwlug-disc] wget and variable assignment

John Van Ostrand john at netdirect.ca
Thu Jun 3 15:01:37 EDT 2010


> 
> Right. That's why I'm here.
> 
> > Do the wget once, using
> >
> > wget -q -O /tmp/osm.html
> >
> > Then parse that file as many times as you want for whatever you
> > want.
> 
> But no way to avoid all those disk calls? The assignment to the
> variable kills the \n or something?

How about changing IFS?

IFS=" \t" echo $WWW | grep ....

 
-- 
John Van Ostrand 
CTO, co-CEO 
Net Direct Inc. 
564 Weber St. N. Unit 12, Waterloo, ON N2L 5C6 
Ph: 866-883-1172 x5102 
Fx: 519-883-8533 

Linux Solutions / IBM Hardware 





More information about the kwlug-disc mailing list