use grep to match multiple lines
Hi all
I have done this before but i cant really recall now I have a text file and i want to grep the word "interface" and 10 lines following it. I think there was some switch like grep -A or something ?? anyone knows ? |
Hi,
Yep, -A10 Code:
grep -A10 "interface" infile |
Try looking at the man page.
|
All times are GMT -5. The time now is 01:29 AM. |