tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* print leading or trailing lines in grep
@ 2002-11-21 15:38 Brehl, Blake
  0 siblings, 0 replies; only message in thread
From: Brehl, Blake @ 2002-11-21 15:38 UTC (permalink / raw)


Good Day Admin's,

Here's a paste from another list about the grep functionality in Linux.  Is
there a way to achieve this in Tru64UNIX?

START PASTE >>>>>>>
On Linux the grep has the next options:
OPTIONS
       -A NUM, --after-context=NUM
              Print NUM lines of trailing context after  matching
              lines.   Places  a  line containing -- between con-
              tiguous groups of matches.
       -B NUM, --before-context=NUM
              Print  NUM lines of leading context before matching
              lines.  Places a line containing  --  between  con-
              tiguous groups of matches.
       -C NUM, --context=NUM
              Print  NUM  lines of output context.  Places a line
              containing -- between contiguous groups of matches.
<<<<<<< END PASTE

Versions: 5.1 and 5.1A

Best Regards,

Blake Brehl
Sr. DBA
Anritsu Company United States
Morgan Hill, CA 


This message is intended for the use of the individual/entity to whom it is addressed. This message may contain privileged information exempt from disclosure. If you are not the addressee, distribution or copying of this message, or dissemination of the information contained herein is strictly prohibited. If you should receive this message in error, please destroy it, or return to sender, Thank You


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-21 15:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-21 15:38 print leading or trailing lines in grep Brehl, Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox