Skip to content

Instantly share code, notes, and snippets.

@DevoKun
Created March 14, 2019 20:27
Show Gist options
  • Save DevoKun/df657d1567f5477430914811dc49ed4c to your computer and use it in GitHub Desktop.
Save DevoKun/df657d1567f5477430914811dc49ed4c to your computer and use it in GitHub Desktop.

Revisions

  1. DevoKun created this gist Mar 14, 2019.
    8 changes: 8 additions & 0 deletions clock.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #!/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