#!/usr/bin/bash
echo "This is a zodiac sign calculator"
echo "May i know your name"
read name
echo "May i know your month of birth"
read month
echo "May i know your date of birth"
read date
if ([[ "$month" == "3" ] && [ "$date" -ge "21" ]] && [[ "$month" == "4" ] && [ "$date" -le "20" ]])
then
echo "Hi $name !!! Your Zodiac Sign is Aries!"
elif ([[ "$month" == "4" ] && [ "$date" -ge "21" ]] && [[ "$month" == "5" ] && [ "$date" -le "21" ]])
then
echo "Hi $name !!! Your Zodiac sign is Taurus"
elif ([[ "$month" == "5" ] && [ "$date" -ge "22" ]] && [[ "$month" == "6" ] && [ "$date" -le "22" ]])
then
echo "Hi $name !!! Your Zodiac sign is Gemini"
elif ([[ "$month" == "6" ] && [ "$date" -ge "23" ]] && [[ "$month" == "7" ] && [ "$date" -le "23" ]])
then
echo "Hi $name !!! Your Zodiac is Cancer"
elif ([[ "$month" == "7" ] && [ "$date" -ge "24" ]] && [[ "$month" == "8" ] && [ "$date" -le "23" ]])
then
echo "Hi $name !!! Your Zodiac sign is Leo"
elif ([[ "$month" == "8" ] && [ "$date" -ge "24" ]] && [[ "$month" == "9" ] && [ "$date" -le "23" ]])
then
echo "Hi $name !!! Your Zodiac sign is Virgo"
elif ([[ "$month" == "9" ] && [ "$date" -ge "24" ]] && [[ "$month" == "10" ] && [ "$date" -le "23" ]])
then
echo "Hi $name !!! Your Zodiac sign is Libra"
elif ([[ "$month" == "10" ] && [ "$date" -ge "24" ]] && [[ "$month" == "11" ] && [ "$date" -le "22" ]])
then
echo "Hi $name !!! Your Zodiac sign is Scorpio"
elif ([[ "$month" == "11" ] && [ "$date" -ge "24" ]] && [[ "$month" == "12" ] && [ "$date" -le "21" ]])
then
echo "Hi $name !!! Your Zodiac sign is Saguittarius"
elif ([[ "$month" == "12" ] && [ "$date" -ge "22" ]] && [[ "$month" == "1" ] && [ "$date" -le "20" ]])
then
echo "Hi $name !!! Your Zodiac sign is Capricorn"
elif ([[ "$month" == "1" ] && [ "$date" -ge "21" ]] && [[ "$month" == "2" ] && [ "$date" -le "19" ]])
then
echo "Hi $name !!! Your Zodiac sign is Aquarius"
elif ([[ "$month" == "2" ] && [ "$date" -ge "20" ]] && [[ "$month" == "3" ] && [ "$date" -le "20" ]])
then
echo "Hi $name !!! Your Zodiac sign is Pieces"
else
echo "Incorrect Input!! Try Again!"
fi
Guys please help me , i am stuck here ..its showing incorrect input everytime