aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmonths.sh16
-rwxr-xr-xyears.sh12
2 files changed, 14 insertions, 14 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
-
+
diff --git a/years.sh b/years.sh
index 49494cb..a3f2f5e 100755
--- a/years.sh
+++ b/years.sh
@@ -1,14 +1,14 @@
-#!/bin/bash
-# _ _ ___ __ _ _ __ ___
+#!/bin/sh
+# _ _ ___ __ _ _ __ ___
# | | | |/ _ \/ _` | '__/ __|
# | |_| | __/ (_| | | \__ \
# \__, |\___|\__,_|_| |___/
-# |___/
+# |___/
#
# Navigates through year calendars and exits with q
year=$(date +%Y)
-ncal -b -y
+cal -m -y
read -n 1 input
while [ "$input" != "q" ]
@@ -22,7 +22,7 @@ do
;;
esac
clear
- ncal -b -y $year
+ cal -m -y $year
read -n 1 input
done
-
+