LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grep some content from a large file (https://www.linuxquestions.org/questions/linux-newbie-8/grep-some-content-from-a-large-file-4175509977/)

simhumcon 07-03-2014 08:22 AM

grep some content from a large file
 
hello all,

i'm having a lot of trouble to get this job done.
i have a large file. but i only want to grep below content from the large file :

RxDqLeft RxDqRight RxVLow RxVHigh TxDqLeft TxDqRight TxVLow TxVHigh
--------------------------------------------------------------------------------
N1.C0.D0.R0: -16 16 -23 21 -19 19 -14 14
N1.C0.D0.R1: -17 16 -23 21 -20 20 -15 14
STOP_RMT_N1

please help me out

schneidz 07-03-2014 08:29 AM

what have you tried and where are you stuck ? awk is probably better for multi-record searching.

try this:
https://lmddgtfy.net/?q=multiline+grep


All times are GMT -5. The time now is 08:52 PM.