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 > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 02-06-2008
tansha tansha is offline
Registered User
  
 

Join Date: May 2006
Posts: 23
Hello, Thanks for the reply.

But I don't think I can use grep as I don't know what are the data block in between teh search string.
My file layout is as follows:

------------------------------
Data
(numerous lines)
------------------------------
Data
(numerous lines)
------------------------------
Data
(numerous lines)
------------------------------
Data
(numerous lines)

And so on. I only need to get the 3 lines above and below the -----------
as well as the -------------

Thanks for any assistance

.