aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaitinq <30861839+Baitinq@users.noreply.github.com>2021-10-21 13:56:23 +0100
committerGitHub <noreply@github.com>2021-10-21 13:56:23 +0100
commitffc49da2bb9e350614371fb84c5e8063ccb4301a (patch)
tree478748dd862b2efe486e4701e34eaa7870b650d0
parent15ad2d6a91c21f0628b777e327fe201b746441e7 (diff)
parente7662233159d11fe6818a5d98b08fa6fd51d270b (diff)
Merge pull request #27 from Baitinq/master
Add DAY_OF_WEEK module
-rw-r--r--modules/day_of_week12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/day_of_week b/modules/day_of_week
new file mode 100644
index 0000000..160da42
--- /dev/null
+++ b/modules/day_of_week
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# Prints out the date
+
+PREFIX=''
+
+get_day()
+{
+ echo "$PREFIX $(date '+%a')"
+}
+
+get_day