Show calendar the way gcal is supposed to (does not work great)

This commit is contained in:
Fabian Schmidt 2020-07-10 08:10:17 +02:00
parent a69b214c91
commit b3b11e3b0e

4
mcal Executable file
View File

@ -0,0 +1,4 @@
cal | awk '{ print " "$0; getline; print " Mo Tu We Th Fr Sa Su"; \
getline; if (substr($0,1,2) == " 1") print " 1 "; \
do { prevline=$0; if (getline == 0) exit; print " " \
substr(prevline,4,17) " " substr($0,1,2) " "; } while (1) }'