The UNIX and Linux Forums  


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 01-05-2009
parshant_bvcoe parshant_bvcoe is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 23
Print Selection of Line between two Identifiers.

I have a following containing DATA in the following format:

[START1]
DATA....------
---------------
--------------
[END1]
DATA.....------
--------------------
------------------
[START1]
DATA....------
---------------
--------------
[END1]


I want to extract the selective DATA in between identifiers [START1] and [END1] including starting identifier i.e, [START1] as depicted below:

[START1]
DATA....------
---------------
--------------
[START1]
DATA....------
---------------
--------------

Please help me with this.Thanks!