On 06/18/02, 08:15:43PM -0400, John P Verel wrote:
> find /home -name "rules.ima" | xargs grep "@aol.com"
You may need/want to ues grep -e or egrep
John
___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redh
On Tue, 18 Jun 2002, John P Verel wrote:
> On 06/18/02, 11:06:53AM -0500, Schmeits, Roger wrote:
> > If I run the command:
> >
> > find /home -name "rules.ima"
> >
> > it lists all rules.ima directories. perfect!
> >
> > but if I run:
sorry, i have to butt in. is the original problem that y
On 06/18/02, 11:06:53AM -0500, Schmeits, Roger wrote:
> If I run the command:
>
> find /home -name "rules.ima"
>
> it lists all rules.ima directories. perfect!
>
> but if I run:
>
> find /home -name "rules.ima" | grep "@aol.com"
> it comes up with nothing.
>
> So I drill down to a directory
If I run the command:
find /home -name "rules.ima"
it lists all rules.ima directories. perfect!
but if I run:
find /home -name "rules.ima" | grep "@aol.com"
it comes up with nothing.
So I drill down to a directory that has both a rules.ima file and a entry
within that file with the entry "[
On Tuesday 18 June 2002 12:16 pm, ListServ wrote:
> If I run the command:
>
> find /home -name "rules.ima"
>
> it lists all rules.ima directories. perfect!
>
> but if I run:
>
> find /home -name "rules.ima" | grep "@aol.com"
> it comes up with nothing.
because you have to print to the screen use
go it!
grep -r -e aol.com /home/dirname/*.*/rules.ima
Not bad for a stupid windows user.
-Original Message-
From: Anand Buddhdev [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 10:44 AM
To: [EMAIL PROTECTED]
Subject: Re: search files for key words
On Tue, Jun 18, 2002 at 10
If I run the command:
find /home -name "rules.ima"
it lists all rules.ima directories. perfect!
but if I run:
find /home -name "rules.ima" | grep "@aol.com"
it comes up with nothing.
So I drill down to a directory that has both a rules.ima file and a entry
within that file with the entry "
On Tue, Jun 18, 2002 at 10:28:42AM -0500, ListServ wrote:
> How can I search thru multiple subdirectories and individual files looking
> for key words?
> Currently I have about 600 subdirectories each one having its own rules.ima
> file.
>
> In particular I am looking for "@aol.com" references i
find / -name "rules.ima" | grep "@aol.com" | more
should work, if I'm understanding your question
properly. If all of your users are in /home (and
these are all user files), you could try
find /home -name "rules.ima" | grep "@aol.com" | more
instead, which would be
a) faster
b) fewer error me