HP3000-L Archives

September 2000, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Mark Bixby <[log in to unmask]>
Date:
Mon, 25 Sep 2000 13:30:06 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
Paul H Christidis wrote:
>
> You do have grep on your HPe3000. It is in the 'posix' shell:
>
> shell/iX> grep -ic sy ./A*
> ./A:0
> ./ABLOCK:0
> ./ABORTJ:8
> ./ACTDUP:0
> ./ALARM:0
> ./ALLOWOP:11
> ./ALVIN:0
> ./APAGEOLD:0
> ./AREX:1
> ./ASCII:1
> shell/iX>
>
> I'm not too familiar with the different 'grep' options, but I assume there
> must be a 'switch' that suppresses the listing of a file that does not
> contain the string of interest.

Just pipe grep's output into another grep that throws away the zero entries:

        grep -ic sy ./A* | grep -v ':0$'

- Mark B.

ATOM RSS1 RSS2