Tyleo-Dev-ShellScripting-Ol.../SH/chooseyourcalendar.sh

18 lines
430 B
Bash
Raw Normal View History

2024-02-18 21:29:57 +00:00
#!/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