Skip to content

Instantly share code, notes, and snippets.

@shinohai
Created January 21, 2015 03:13
Show Gist options
  • Save shinohai/ab43dcc220b5a44d8ac5 to your computer and use it in GitHub Desktop.
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.
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