I have an exam to prepare for and here I am, making changes to my meme-fetching script...
Prithu Goswami prithugoswami524@gmail.com
Tue, 24 Dec 2019 20:53:23 +0530
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
bin/scripts/get-memes
→
bin/scripts/get-memes
@@ -2,4 +2,5 @@ #!/usr/bin/bash
memepath=$HOME/pictures/memes -wget --quiet reddit.com/r/memes.json -O -| jq '.data.children[] |.data.url' | xargs wget --quiet -P "$memepath" +wget --quiet reddit.com/r/memes.json -O -| jq '.data.children[] |.data.url' |\ + grep -E 'jpg|png"$' | xargs wget --quiet -P "$memepath"