select app from the menu: ABC DEF GHI JKL ALL # ALL will select all the apps in the menu echo "Enter your option" read option; if [ ${option} = "ALL" ] then <execute the below command> elif [ ${option} = "option" ] # option is the 1 selection from menu...not ALL <execute the below command> else echo wrong option."" fi
question:
id user enters A* or AB?...... the scripts executes at
elif
.
i want to avoid special characters in if loop...below is the syntax.....but i want to know is there any other where i can eliminate all Special chars with out using below format.
sorry, i made a wrong question in above thread....
actual question: the loop should not execute if the user enters special character(s) with the combination of menu..