Re: search files for key words

2002-06-18 Thread John P Verel
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

Re: search files for key words

2002-06-18 Thread Robert P. J. Day
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

Re: search files for key words

2002-06-18 Thread John P Verel
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

RE: search files for key words

2002-06-18 Thread Schmeits, Roger
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 "[

search files for key words

2002-06-18 Thread Schmeits, Roger
How can I search thru multiple subdirectories and individual files looking for key words? In particular I am looking for "@aol.com" references in all rules.ima files. Currently I have about 600 subdirectories each one having its own rules.ima file. Roger __

Re: search files for key words

2002-06-18 Thread David McGlone
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

RE: search files for key words

2002-06-18 Thread ListServ
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

RE: search files for key words

2002-06-18 Thread ListServ
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 "

Re: search files for key words

2002-06-18 Thread Anand Buddhdev
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

RE: search files for key words

2002-06-18 Thread Ward William E DLDN
ead, 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 w

search files for key words

2002-06-18 Thread ListServ
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 ___