So, I slowed down and started a much simpler script than what I was trying before. I clearly need to do this as I'm still having issues with even a simple script! So, here's the code:
Code:
#!/bin/bash
#my first script
#The Welcoming
read -p "Enter Your Name: " name
echo "Hello " $name", what would you like me to do? "
sleep 1
#The Menu
echo "..........................."
echo "...........MENU............"
echo
echo "1 Display this months calandar"
echo "2 Exit"
read input
if [[input = 1]]
then
cal
elif [[input = 2]]
then
echo "Thanks" $name"!"
fi
So, basically, the only thing I can seem to make work is the welcoming part and displaying the menu. What am I doing wrong here? If you are going to try to flame me, don't bother, as I am difficult to upset!
Thanks!
DeX