You can literally write it as a shell script
#!/bin/bash N=2 while true; do clear echo Every $N\s: $* $* sleep $N done
Reply on news.ycombinator.com