![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help on egrep | arund_01 | Shell Programming and Scripting | 2 | 05-13-2008 10:26 AM |
| egrep help | Darklight | Shell Programming and Scripting | 1 | 04-17-2008 11:34 PM |
| egrep | DNAx86 | Shell Programming and Scripting | 7 | 01-18-2008 04:59 AM |
| Egrep cheat sheet anywhere? Looking for meaning of egrep -c | leelm | UNIX for Dummies Questions & Answers | 2 | 01-11-2008 11:37 AM |
| egrep help | Vozx | Shell Programming and Scripting | 2 | 12-09-2005 06:42 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
help with egrep
I have a file called alert.log containing the following:
WARNING: received KRVX_OPER_CANNOT_SUPPORT knlldmm: gdbnm=CROOP knlldmm: objn=23793 knlldmm: objv=1 knlldmm: scn=5189816456 knllgobjinfo: MISSING Streams multi-version data dictionary!!! knlldmm: gdbnm=FDROP knlldmm: objn=49385 knlldmm: objv=2 knlldmm: scn=5201332536 Is there any way I can use egrep to pull out only lines 6-10 out of the file? I tried using: egrep -n -i "knllgobjinfo|knlldmm" alert.log but that also gives me lines 2-5 which I dont want. If egrep can't do it, what else can I use that can? Thanks in advance. |
| Forum Sponsor | ||
|
|
|
|||
|
Thanks a lot, you answered my question, but its not exactly what I was looking, I wasn't as specific as I should have been.
What I really meant is: How can I print to standard output the line beginning with "knllgobjinfo" and its following 4 lines, regardless of where it occurs in the file. Thanks again. |