DJ Lucas wrote:

> Adding the spacing like you did is much easier to look at, and just
> ignore that sed...awk is better in this case.

Why not 'cut' for less overhead?

grep -v '^#' ../applications.md5 |  cut -d" " -f3 |
   wget -i- -c \
       -B http://xorg.freedesktop.org/releases/individual/app/

or even cut -b35-

I'd also prefer to use environment variables to make things more clear:

DIR=http://xorg.freedesktop.org/releases/individual/app/
MD5FILE=../applications.md5

grep -v '^#' $MD5FILE |  cut -d" " -f3 | wget -i- -c -B $DIR

That last line then becomes identical for all sections that have an md5 
file.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to