aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBaitinq <30861839+Baitinq@users.noreply.github.com>2021-10-21 13:55:33 +0100
committerGitHub <noreply@github.com>2021-10-21 13:55:33 +0100
commite7662233159d11fe6818a5d98b08fa6fd51d270b (patch)
tree478748dd862b2efe486e4701e34eaa7870b650d0 /modules
parentc5d1205e0cd97e585aafdfbdd8ca77a61ce61c10 (diff)
Add DAY_OF_WEEK module
Prints out which day of the week it is (Thursday, etc)
Diffstat (limited to 'modules')
-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