Skip to content

Instantly share code, notes, and snippets.

@bebyx
Last active October 1, 2020 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bebyx/a07d954297179b75db861dff2724a7d4 to your computer and use it in GitHub Desktop.
Save bebyx/a07d954297179b75db861dff2724a7d4 to your computer and use it in GitHub Desktop.
A script to download sources for LFS
#!/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