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.