Created
September 9, 2015 16:21
-
-
Save anonymous/4d16523bc72b5e62b7e1 to your computer and use it in GitHub Desktop.
最新のNHKラジオニュースを再生する奴
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 | |
URL=$(curl http://www.nhk.or.jp/r-news/podcast/nhkradionews.xml | grep mp3 | head -n 1 | grep -oE http.*\.mp3) | |
wget ${URL} | |
FILENAME=$(basename ${URL}) | |
mpg123 -C ${FILENAME} | |
rm ${FILENAME} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment