Skip to content

Instantly share code, notes, and snippets.

@DevoKun
Created March 14, 2019 20:27
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 DevoKun/df657d1567f5477430914811dc49ed4c to your computer and use it in GitHub Desktop.
Save DevoKun/df657d1567f5477430914811dc49ed4c to your computer and use it in GitHub Desktop.
Display date+time that auto-increments in shell
#!/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