diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2018-11-19 14:13:18 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2018-11-19 14:13:18 +0100 |
commit | 683564bd058884356491b7b847f5d2e204207389 (patch) | |
tree | c7d60ec611dc6c72fcf885d30051fae9757d67c1 /years.sh | |
download | scripts-683564bd058884356491b7b847f5d2e204207389.tar.gz scripts-683564bd058884356491b7b847f5d2e204207389.zip |
Initial scripts commit.
Diffstat (limited to 'years.sh')
-rw-r--r-- | years.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/years.sh b/years.sh new file mode 100644 index 0000000..49494cb --- /dev/null +++ b/years.sh @@ -0,0 +1,28 @@ +#!/bin/bash +# _ _ ___ __ _ _ __ ___ +# | | | |/ _ \/ _` | '__/ __| +# | |_| | __/ (_| | | \__ \ +# \__, |\___|\__,_|_| |___/ +# |___/ +# +# Navigates through year calendars and exits with q + +year=$(date +%Y) +ncal -b -y +read -n 1 input + +while [ "$input" != "q" ] +do + case $input in + l) + year=$(($year+1)) + ;; + h) + year=$(($year-1)) + ;; + esac + clear + ncal -b -y $year + read -n 1 input +done + |