UPDATE SUMMARY: print leading or trailing lines in grep

From: Brehl, Blake <Blake.Brehl_at_anritsu.com>
Date: Thu, 21 Nov 2002 11:07:07 -0800

I found the GNU install to be a battle of cc errors when doing configure and
make. An easier path was finding a compiled binary on the media :

Compaq Tru64UNIX Version 5.1A, Open Source Software Collection, RPM Install

(I was hoping to pull it off a Compaq url but couldn't find it)

It's the Red Hat Package Manager. Executing 2 commands

        /mnt/SETUP/RPM-init.ksh
        /mnt/SETUP/install-grep-2.4.2-4.ksh

installed the GNU grep in /usr/local/bin/ .

Best Regards, Blake

>-----Original Message-----
>From: Brehl, Blake
>Sent: Thursday, November 21, 2002 8:16 AM
>To: Tru64 Mailing List (tru64-unix-managers_at_ornl.gov)
>Subject: SUMMARY: print leading or trailing lines in grep
>
>
>I received many reply's. This is GNU grep which you can get
>from their site.
>
>Best Regards, Blake
>
>>-----Original Message-----
>>From: Brehl, Blake
>>Sent: Thursday, November 21, 2002 7:38 AM
>>To: Tru64 Mailing List (tru64-unix-managers_at_ornl.gov)
>>Subject: print leading or trailing lines in grep
>>
>>
>>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
Received on Thu Nov 21 2002 - 19:08:03 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT