From e7662233159d11fe6818a5d98b08fa6fd51d270b Mon Sep 17 00:00:00 2001 From: Baitinq <30861839+Baitinq@users.noreply.github.com> Date: Thu, 21 Oct 2021 13:55:33 +0100 Subject: [PATCH] Add DAY_OF_WEEK module Prints out which day of the week it is (Thursday, etc) --- modules/day_of_week | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 modules/day_of_week 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