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 messages (i.e., none if run as root)

HTH
Bill Ward

> -----Original Message-----
> From: ListServ [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 18, 2002 11:29 AM
> To: '[EMAIL PROTECTED]'
> Subject: search files for key words
> 
> 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 in all 
> rules.ima files.
> 
> 
> Roger



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to