... And using fgrep is an order of magnitude faster than FIND in my
testing.


fgrep -i "Yaddah" dec0924.log


That would be a straightforward substitution.  Then you can turn to
egrep when you actually want to do some regular expression work; I keep
it pretty simple, on the order of:


egrep -i "subject.+yadda" dec0924.log


And that works for me.  Knowing find and grep is useful when you travel
to different client sites; also useful is keeping favourite tools on a
USB stick.

Andrew 8)

p.s. http://unxutils.sourceforge.net/




> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
> Behalf Of John T (Lists)
> Sent: Saturday, September 23, 2006 11:09 AM
> To: [email protected]
> Subject: RE: [Declude.JunkMail] FIND command question
> 
> I looked at the options a couple of times and did not see that.
> 
> Appointment at Costco Optical dept. being made soon.
> 
> >From the desk of the Open Mouth Insert Foot Dept: Thanks.
> 
> John T
> eServices For You
> 
> "Seek, and ye shall find!"
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
> > Mike N
> > Sent: Saturday, September 23, 2006 10:55 AM
> > To: [email protected]
> > Subject: Re: [Declude.JunkMail] FIND command question
> > 
> > Find /I
> > 
> >  /I         Ignores the case of characters when searching 
> for the string.
> > 
> > ----- Original Message -----
> > Question, what is the best quick way to search the logs via command 
> > line
> for
> > a string and not have the search be case sensitive?
> > 
> > "Seek /I, and ye shall find!"
> > 
> > <g>
> > 
> > 
> > 
> > 
> > 
> > ---
> > This E-mail came from the Declude.JunkMail mailing list.  To 
> > unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type 
> > "unsubscribe Declude.JunkMail".  The archives can be found at 
> > http://www.mail-archive.com.
> 
> 
> 
> 
> 
> ---
> This E-mail came from the Declude.JunkMail mailing list.  To 
> unsubscribe, just send an E-mail to [EMAIL PROTECTED], and 
> type "unsubscribe Declude.JunkMail".  The archives can be 
> found at http://www.mail-archive.com.
> 
> 



---
This E-mail came from the Declude.JunkMail mailing list.  To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.JunkMail".  The archives can be found
at http://www.mail-archive.com.

Reply via email to