Created
March 14, 2019 20:27
-
-
Save DevoKun/df657d1567f5477430914811dc49ed4c to your computer and use it in GitHub Desktop.
Display date+time that auto-increments in shell
This file contains hidden or 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/bash | |
reset | |
while sleep 1; do | |
tput sc | |
echo -e " \e[36m $(hostname)\e[97m: \e[1m\e[93m`gdate +%T.%N`\e[39m" | |
tput rc | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment