Saturday, March 5, 2011

How to download all haiku source files in 5 minutes

Many of you emailed us to ask how to download haiku source files, since they are too many to click every one of them. The answer is quite simple though and it also shows the power of the bash again!
Use the script below

link="http://haiku-files.org/files/releases/r1alpha2/sources/"
links=`less index.html | grep "href=*" | tr "=;<>" "\n" | tr -d '"' | grep ".xz"`
for lnk in $links; do 

wget "$link$lnk" 
done

And wait until all downloads are finished!!!

No comments:

Post a Comment