Last active
April 10, 2022 21:02
-
-
Save lucasburlingham/fa8653bc155e1817c92b4c8f2a8c340f to your computer and use it in GitHub Desktop.
Get all LFS dependancies from the jaleco mirror
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
curl "http://mirror.jaleco.com/lfs/pub/lfs/lfs-packages/10.0/" \ | |
grep "<a href" | \ | |
awk '{print $2}' | \ | |
sed 's/href="/http:\/\/mirror.jaleco.com\/lfs\/pub\/lfs\/lfs-packages\/10.0\//' | \ | |
sed 's/<//' | \ | |
sed 's/">/ /' | \ | |
sed 's/\/a><\/td><td>//' | \ | |
awk '{print $1}' | \ | |
grep -v "https://www.jaleco.com" | \ | |
grep -v "?C=N&O=A" | \ | |
while read TARGET; \ | |
do wget $TARGET; \ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment