Simplify conversion to human-readable units
[khome.git] / home / bin / weekday-viz
CommitLineData
d47ef50e
SK
1#! /bin/sh
2
3awk -v dow="$(date '+%u')" '
4 BEGIN {
5 viz[1] = "M---- --"
6 viz[2] = "-T--- --"
7 viz[3] = "--W-- --"
8 viz[4] = "---T- --"
9 viz[5] = "----F --"
10 viz[6] = "----- S-"
11 viz[7] = "----- -S"
12
13 print viz[dow]
14 }
15'
This page took 0.043107 seconds and 4 git commands to generate.