Last active
March 22, 2017 21:42
-
-
Save mattConn/078c2f62429b933f0cd255e7d0a0cbd9 to your computer and use it in GitHub Desktop.
Simple shell script to repeatedly run a command every 2 seconds.
This file contains 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
#!/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