Shell Scripts for Beginners – Kode Kloud

if [[ $month_number -lt 1 && $month_number -gt 12 ]]
then
echo “Invalid month number given. Please enter a valid number - 1 to 12.”
exit
fi

In above condition block i think instead of && , there should be || .

Hello Sambhajijk,

yes, it should be || not &&.

Thanks,
KodeKloud Support