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:
Paul H Christidis <[log in to unmask]>
Reply To:
Paul H Christidis <[log in to unmask]>
Date:
Mon, 25 Sep 2000 12:22:31 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (45 lines)
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.

ATOM RSS1 RSS2