Tyleo-Dev-ShellScripting-Ol.../SH/chooseyourcalendar.sh
2024-02-18 22:29:57 +01:00

17 lines
430 B
Bash
Executable file

#!/bin/sh
# This condition allow you to choose between cal or calendar commands.
ACTIVECOMMAND=
clear
echo "Choose your calendar !"
echo " Simple / Complex "
read ACTIVECOMMAND
# ---------------------------
if [ $ACTIVECOMMAND = Simple ]; then
cal
elif [ $ACTIVECOMMAND = Complex ]; then
calendar
elif [ $ACTIVECOMMAND = Simplex ]; then
echo "En fait, t'est complétement con."
else
echo "Eheh, no correspondance."
fi