From: Siraaj Khandkar Date: Wed, 21 Apr 2021 12:41:01 +0000 (-0400) Subject: Implement weekday vizualizer script X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=d47ef50e064d10dd464127c965e2fa32613cb82b;p=khome.git Implement weekday vizualizer script --- diff --git a/home/bin/weekday-viz b/home/bin/weekday-viz new file mode 100755 index 0000000..d5202ab --- /dev/null +++ b/home/bin/weekday-viz @@ -0,0 +1,15 @@ +#! /bin/sh + +awk -v dow="$(date '+%u')" ' + BEGIN { + viz[1] = "M---- --" + viz[2] = "-T--- --" + viz[3] = "--W-- --" + viz[4] = "---T- --" + viz[5] = "----F --" + viz[6] = "----- S-" + viz[7] = "----- -S" + + print viz[dow] + } +'