[CUBE] sherlock

atoa at krak.net atoa at krak.net
Tue May 11 18:16:40 PDT 2004


grep is a standard unix utility, and can be accessed via a terminal
window.

The man pages are pretty good, but a very short example, mentioned in
this list a couple of months back:


cube% cd /usr/share/calendar
cube% grep LOTR *

and look at the results. Then do:

cube% more calendar.history

and you'll see that it found every line that had LOTR in it.

grep -e or egrep can search using regex, too, which allows for pretty
sophisticated searching.

It is much much faster than the gui find, and doesn't require indexing.


On Tue, 11 May 2004, Helen Lowe wrote:

> Thank you everyone who responded on this.
>
> I think the point about Sherlock 2 was that you indexed all your documents,
> and could leave the index running overnight. So when you did a
> find-by-content the engine just searched the index. I tested this by leaving
> the index running in Classic last night (it took about 5 hours) and just did
> a search for a known bit of text, and Sherlock  came up with 57 files in a
> few seconds.
>
> I tried the same thing with OS X just now, and it seems to me that it was
> searching through all the files, which is presumably why it is interminably
> slow.
>
> The trouble is, if you need to search, you generally need the answer
> straight away! Back to Classic on that one, then...
>
> I have downloaded EasyFind and it doesn't seem to report on my Word
> documents although it did whizz round much faster than OS X findfile.
>
> And, I seem to have missed something in my Apple education - what does "grep
> the terminal" mean?
>
>
> ----------
> Check out the Cube email list FAQ
> http://www.themacintoshguy.com/lists/Cube.html
>
> To unsubscribe, E-mail to: <Cube-off at lists.themacintoshguy.com>
> To switch to the DIGEST mode, E-mail to <Cube-digest at lists.themacintoshguy.com>
> Need help from a real person? Try.  <Cube-request at lists.themacintoshguy.com>
>
> ----------
> $14.99 Unlimited Nationwide Mac Dialup and Mac Web Hosting from your Mac ISP
> Serious Mac Internet Solutions From NineWire!   http://macinternetaccess.com
>
>  T3Hub  |  3 Port USB Hub weighs less than an ounce!
> Dr. Bott|   <http://www.drbott.com/prod/T3Hub.html>
>
>    Cyberian   | Support this list when you buy at Outpost.com!
>    Outpost    | http://www.themacintoshguy.com/outpost.shtml
>
> ADC Extension | Extend the built in cable of your flat panel by 10 ft.
>   Dr. Bott    |    <http://www.drbott.com/prod/ADCExtension.html>
>



More information about the Cube mailing list