Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save elpollodiablo/2f57a3332f3f6f803e1d43dfced26107 to your computer and use it in GitHub Desktop.
Save elpollodiablo/2f57a3332f3f6f803e1d43dfced26107 to your computer and use it in GitHub Desktop.
for muh in `find ep/posts`; do echo $muh; url=`cat $muh |json_pp| grep '"url" : "https://'|awk '{print $3}'|sed s,\",,g| sed "s,asset/\([0-9]*\)/\([0-9]*\)_\([0-9a-f]*\)\(_[0-9]*\)\?\.\([a-z]*\),asset/\1/\2_\3.\5,g" |sed s/,$//`; fn=`echo $url |sed -e s,https://asset.soup.io/,,g -e s,/,_,g`; test $url && wget -q $url -O $fn; done 2> /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment