Skip to content

Instantly share code, notes, and snippets.

@itsmethemojo
Created January 24, 2019 13:03
Show Gist options
  • Save itsmethemojo/72d8986b68c85beb8c2ac39b11202dd4 to your computer and use it in GitHub Desktop.
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/
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