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.
Regards
Paul Christidis
Hi all,
I need to search for a particular string through certain files in a group
and also need to find out the number of times the string occurs. I mean..
if
I am looking for "WHAT" in [log in to unmask], I need to get a output like :
Source1 - 2 occurences found
Source2 - 10 Occurences found
Source4 - 3 Occurences found.
I would not want a particular Source3 to be displayed saying '0' Occurences
found ? In simple words, I need a GREP version on HPe3000 !! Is there a way
this can be accomplished through any command in HPe3000 ? If so, how ?
Thanks for all your replies in advance.
With Best Regards
Raghu.