Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: OT: HP-UX 11/grep
Vergara, Michael (TEM) wrote:
> Hi Gang...sorry about being kinda OT...but...
>
> A long time ago, when I used VMS, I could scan a file and see
> a set number of lines before and after the line I was looking=20
> for. I don't even remember the command nowadays.
>
> Does anyone know of an analogous command that can be used in the
> *NIX environment?
>
> Thanks,
> Mike
<snip>
can also do like this:
grep -nr3 <search_term> <filename>
shows the line number and the 3 lines prededing and succeeding the matches
-- Bricklen Anderson, Database Administrator PresiNET Systems http://www.PresiNET.com Live Demo: https://www.presinet.com/secure/login ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Thu Feb 05 2004 - 13:10:59 CST
![]() |
![]() |