Hacker News new | ask | show | jobs
by submain 973 days ago
Here's a naive bash implementation of this, just for fun:

  while true; do 
     clear
     tail -n 5 /tmp/notes
     read line
     echo "$line" >> /tmp/notes
  done