On 04/22/2013 07:15 AM, david vann wrote:

[putolin]

> To this end, I made the following little command, that extracts all 
> the software tarball links from the book, and downloads them. I mean, 
> who the heck wants to click on links when we can do this:
>
> ~$ wget -nc $(grep -h -e 
> '\([1-z]\(.\|/\)\+\).\(bz2\|xz\|zip\|gz\|gzip\|patch\)' $(find 
> ../../../Documents/blfs/  -type f -name '*.html') | sed -e 's@^\s\+@@' 
> -e 's:</a>:\n:' -e 's:">:\n:' | grep '^\(ht\|ft\)' | sort -u -t: -k 2)
>
> replace ../../../Documents/blfs/ with the root directory of your local 
> copy of the book. Then, you get the software from the recommended 
> place without overloading anybody's server. If you're like me, and are 
> sort of catch as catch can on internet access, you can have all of the 
> packages you might need, even if you build 32 bit for one box, and 64 
> bit for another. I don't know if anyone will find this useful, but I 
> found it useful for myself. And I got to learn about regular 
> expressions and several command line tools :)
>
>

Doesn't work for me and I am having trouble parsing this.

I think a bash script would have been better
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to