aboutsummaryrefslogtreecommitdiff
path: root/months.sh
diff options
context:
space:
mode:
authorInigo Gutierrez <inigogf.95@gmail.com>2019-03-07 10:28:25 +0000
committerInigo Gutierrez <inigogf.95@gmail.com>2019-03-07 10:28:25 +0000
commit833b8e5015be7fc10025a0815567d9eab8ed9713 (patch)
treefa2bb770d7272d2a4556163ea0910c45a395160d /months.sh
parent3de52c1aea725a21757715509da566330dc4167c (diff)
downloadscripts-833b8e5015be7fc10025a0815567d9eab8ed9713.tar.gz
scripts-833b8e5015be7fc10025a0815567d9eab8ed9713.zip
months.sh and years.sh now use cal, which is more common.
Diffstat (limited to 'months.sh')
-rwxr-xr-xmonths.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/months.sh b/months.sh
index b9d822b..4adb22e 100755
--- a/months.sh
+++ b/months.sh
@@ -1,15 +1,15 @@
-#!/bin/bash
-# _ _
-# _ __ ___ ___ _ __ | |_| |__ ___
+#!/bin/sh
+# _ _
+# _ __ ___ ___ _ __ | |_| |__ ___
# | '_ ` _ \ / _ \| '_ \| __| '_ \/ __|
# | | | | | | (_) | | | | |_| | | \__ \
# |_| |_| |_|\___/|_| |_|\__|_| |_|___/
-#
+#
# Navigates through month calendars and exits with q
month=$(date +%m)
year=$(date +%Y)
-ncal -b -m $month $year
+cal -m $month $year
read -n 1 input
while [ "$input" != "q" ]
@@ -22,7 +22,7 @@ do
then
year=$(($year+1))
fi
- ncal -b -m $month $year
+ cal -m $month $year
read -n 1 input
;;
h)
@@ -33,9 +33,9 @@ do
month=12
year=$(($year-1))
fi
- ncal -b -m $month $year
+ cal -m $month $year
read -n 1 input
;;
esac
done
-
+