Quick edit on accepted variable.

I am new newbie to unix.

I am taking user input using ksh script.

The valid value user can enter is

a) Numeric 1 to 500
b) character e, r
c) e1 to e100

I figured out how to deal with a) and b) but want to separate characters when user enter e1 to e100

I want to store e in variable and numeric part followed by e in other variable.

Any quick tip to separate will work.

Do we have "cut" till end of command ?

Thanks.:rolleyes:

as u know first character is e , u can store it directly

 
 value=`echo "$var_apped" |sed 's/e//'`
 
 cha=e