Bash Case Issues..

view story

http://www.unix.com – Hi, I'm having some trouble with using "case...esac" in Bash. I've googled it and am stuggling to understand the syntax and how to do certain things. Firstly, I want to be able to choose a case based on a variable number For example, I have in my code a place where a user can enter a number using read. Code: read SEL Then I want to use a case to decide what should be done. I want it to be able to figure out whether it is a number or letter. Using "if" you can always use Code: if [ $SEL -eq $SEL 2>/dev/null ] then     echo "Is Numb (HowTos)