![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
need help on sed
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! |
| Bookmarks |
| Tags |
| bge, e1000g, sed, split |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|