diff options
author | Baitinq <30861839+Baitinq@users.noreply.github.com> | 2021-10-21 13:56:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 13:56:23 +0100 |
commit | ffc49da2bb9e350614371fb84c5e8063ccb4301a (patch) | |
tree | 478748dd862b2efe486e4701e34eaa7870b650d0 /modules/day_of_week | |
parent | 15ad2d6a91c21f0628b777e327fe201b746441e7 (diff) | |
parent | e7662233159d11fe6818a5d98b08fa6fd51d270b (diff) |
Merge pull request #27 from Baitinq/master
Add DAY_OF_WEEK module
Diffstat (limited to 'modules/day_of_week')
-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 |