I have the following script to check for multiple condition occurred.
Script:
#!/bin/bash
echo "1.Add, 2.Sub, 3.Mul, 4.Div"
echo "Enter your choice:"
read ch
#Here i want to check the condition for 1, 01 and also 001
if [ $ch = 1 ]
then
echo "Addition goes here"
...
...
fi
Note: How can i use multiple condition using IN?
Like:
if [ $ch IN ('1','01','001') ]