I need sed expert help here
A=`echo $INTERFACE| sed -e 's/[0-9]//g'`
B=`echo $INTERFACE | sed -e 's/[a-z]//g'`
If $INTERFACE is bge0, ce1, qfe2, the script above works just file. It will give the bge, ce or qfe to A, and the number to B.
But it doesn't work for e1000g0. Could anyone help me to split e1000g0 to e1000g and "0" by sed? It should also work for bge0, ce1 or qfe2 as well.
By the way, all these are Solaris NIC names.
Thanks in advance!