Last active
November 9, 2019 16:32
-
-
Save EldonMcGuinness/d5edb240c9fc3fccc2a73bacc9eaa244 to your computer and use it in GitHub Desktop.
Download Ubuntu (and perhaps other) Linux ISOs to a watch directory as they are posted to a website
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 | |
WATCH_DIR=$1 | |
URL=https://ubuntu.com/download/alternative-downloads | |
cd "$WATCH_DIR" | |
for i in $(curl -sq "$URL" -- | grep -hoE 'http.+?torrent'); do wget -q $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment