The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-13-2008
racbern racbern is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 26
Is There a Sed Solution for This?

Hi All,

I'm trying to use sed to extract data within a String, but I'm having problems with sed command:

Text:
STATUS OSRC_R6_0_MENT_R1H_CU M_901662 R1H_LV1_20080313


Based from the Text above, I just need to extract this data
R6_0
R1H_CU
LV1


Is there a solution for this in sed?


Thanks a lot in advance.


Regards,
racbern