Created
January 21, 2015 03:13
-
-
Save shinohai/ab43dcc220b5a44d8ac5 to your computer and use it in GitHub Desktop.
A bash function to scroll an rss feed across the top of the terminal. Replace url with your feed of choice.
This file contains hidden or 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
while true;do n="$(curl -s https://www.reddit.com/r/cryptocurrency.rss|sed 's/</\n/g'|grep "title>"|sed -e '/^\// d' -e 's/title>/---------- /g' -e '1,3d'|tr '\n' ' ')";for i in $(eval echo {0..${#n}});do echo -ne "\e[s\e[0;0H${n:$i:$COLUMNS}\e[u";sleep .15;done;done & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment