The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX 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

.
Reply With Quote