Created
July 20, 2020 09:24
-
-
Save elpollodiablo/2f57a3332f3f6f803e1d43dfced26107 to your computer and use it in GitHub Desktop.
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
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