I am trying to have 3 choices instead of 2.
Right now, I have the following, which is not working:
2) # To get the Calendar
echo "Hello, do you the day of the month or the julian date?"
echo -n "Enter 1 for date or 2 for julian date or 3 for 3 month output: "
read ANSWER
if [ "$ANSWER" = 1 ]; then
cal
then [ "$ANSWER" = 2 ]; then
cal -j
else
cal -3
fi
;;
When I type myscript, I get
line 33: syntax error near unexpected token `then'
line 33: ` then [ "$ANSWER" = 2 ]; then'