diff options
author | Baitinq <30861839+Baitinq@users.noreply.github.com> | 2021-10-21 13:55:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 13:55:33 +0100 |
commit | e7662233159d11fe6818a5d98b08fa6fd51d270b (patch) | |
tree | 478748dd862b2efe486e4701e34eaa7870b650d0 /modules | |
parent | c5d1205e0cd97e585aafdfbdd8ca77a61ce61c10 (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_week | 12 |
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 |