Last active
September 22, 2020 15:51
-
-
Save jan-vandenberg/3b3683b2c63175cc2e4b2a7edeb54545 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
#!/bin/bash | |
IFS=$'\n' | |
wget -O /tmp/rss https://feeds.fireside.fm/appelsenperenshow/rss | |
grep -B5 mp3 /tmp/rss|grep -E 'title|enclosure'|grep title|sed 's/<title>//g'|sed 's/<\/title>//g'|sed -e 's/^[ \t]*//' |sed 's/!//g'|sed 's/,//g'| sed "s/'//g" > /tmp/titles | |
grep -B5 mp3 /tmp/rss|grep -E 'title|enclosure'| grep mp3 |awk {'print $2'} |awk -F \" {'print $2'} > /tmp/mp3 | |
paste -d \| /tmp/titles /tmp/mp3 > /tmp/alles | |
awk -F\| '{print "wget -O \x27" $1".mp3\x27" " " $2}' /tmp/alles > /tmp/downloadall.sh | |
chmod 755 /tmp/downloadall.sh | |
/tmp/downloadall.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment