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!!!
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