I need a script that should print 'yes' if the argument is a valid shell variable name else 'No' if it is not a valid shell variable. A valid one begins with an alphabet or percentage (%) character and is followed by zero or more alphanumberic or percentage (%) characters.
You do realise we are not here to do the work for you but to help you do your work!
Not quite the same thing, so what cant you do or what have you done so far?
Im impressed by the little reactiveness of thread owner.. wanted to show him the correct syntax but also this approach would be laborious and point him to some readings like: Case statement in shell
Because here obviously its case statement that should be used...
Oh well...