Skip to content

Instantly share code, notes, and snippets.

@mattConn
Last active March 22, 2017 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattConn/078c2f62429b933f0cd255e7d0a0cbd9 to your computer and use it in GitHub Desktop.
Save mattConn/078c2f62429b933f0cd255e7d0a0cbd9 to your computer and use it in GitHub Desktop.
Simple shell script to repeatedly run a command every 2 seconds.
#!/bin/sh
read input;
while true; do clear; $input; sleep 2; clear; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment