Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

How to print N number of lines before and after the grep?

$
0
0
Hi ,
My record file , need to print up to above (DATA array)(there may be n no lines ) , grep "myvalue" row now .....suggest me some options

--- DATA Array---
record type xxxxx
sequence type yyyyy
2
3---> data1
/dev/
--- DEVICE ---
MAXIMUM_People=[SUB device ]
data_blocks=[GET details ]
MY_value=2
xyz
abc
people =[xxxxxxxxxxxxx]
#######################

Viewing all articles
Browse latest Browse all 16232

Trending Articles