Created
January 24, 2019 13:03
-
-
Save itsmethemojo/72d8986b68c85beb8c2ac39b11202dd4 to your computer and use it in GitHub Desktop.
single line bash (also git bash on windows) command to download all chromecast background images listed in https://github.com/dconnolly/chromecast-backgrounds/
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
IMG_CNT=0; for URL in $(curl -s https://raw.githubusercontent.com/dconnolly/chromecast-backgrounds/master/README.md |awk -F'(' '{print $2}' | awk -F')' '{print $1}'); do IMG_CNT=$((IMG_CNT + 1)); curl -s "$URL" > $IMG_CNT"."${URL##*.} ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment