Last active
October 1, 2020 09:53
-
-
Save bebyx/a07d954297179b75db861dff2724a7d4 to your computer and use it in GitHub Desktop.
A script to download sources for LFS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl http://www.linuxfromscratch.org/lfs/view/stable/chapter03/packages.html | grep -e "\.tar\..\{2,3\}\"" | sed 's/^\s*\"\(\(https\?\|ftp\).\+\.tar\.\S\{2,3\}\)\".*/\1/g' > dlinks | |
while read LINE; do | |
wget -nc "$LINE" | |
done < dlinks | |
rm ./dlinks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment