i want to let the user Input the selection, then use if elif statement to differentiate the input.
code:
read in
if $in = "1"
then
Type="Employee1"
elif $in = "2"
then
Type="Employee2"
elif $in = "3"
then
Type="Employee3"
else
echo "Wrong input"
Error:
./Pay.sh: line 127: 1: command not found
./Pay.sh: line 130: 1: command not found
./Pay.sh: line 133: 1: command not found
Wrong input
please advise thank you
selectcommand.