From: joungwoo@mensa.usc.edu (John Kim)
Newsgroups: comp.sys.mac.misc
Subject: Re: (Q) Looking for a multi-file grep program for Mac
Date: 15 Dec 1992 03:59:02 -0800
Organization: University of Southern California, Los Angeles, CA
NNTP-Posting-Host: mensa.usc.edu
Keywords: grep

joungwoo@mensa.usc.edu (John Kim) writes:


>The subject line says it all. I tried MacGrep but this searches only one
>file. Is there a program that searches many files at the same time for a
>string pattern? 

>Please email me.

>Thanks.

>John

I already got several answers to my question from Rich Siegel, Glenn Howes, 
Masatsugu Nagata and Catherine Caston. Nagata's reply was most extensive, so
I will post only his, which subsumes others' reply. Yet I would like to thank
all who replied to me.

From: Masatsugu Nagata <nagata@kurims.kyoto-u.ac.jp>
Return-Path: <nagata@kurims.kyoto-u.ac.jp>
Date: Tue, 15 Dec 92 20:16:32 JST
Message-Id: <9212151116.AA02765@hakobe>
To: joungwoo@mensa.usc.edu (John Kim)
Subject: (Q) Looking for a multi-file grep program for Mac


Almost ALL of available Mac _text editors_ can do that.
(Multi-file, regular expression search).

By far the most powerful one is:

QUED/M 2.5 (commercial, Nisus Software, 619-481-1477)
The Sytem 7 savvy version 2.5 has just appeared.
$30 if you have an earlier version, $50 otherwise.
Grep function is virtually equivalent to Unix's.
(The interface is totally different, though.)

You can select ANY set of files from any folders, to 
start a search.


The big brother of QUED/M,  Nisus, is "THE word processor".
This one is equally powerful as QUED/M, only that it's big, 
more features (graphics, styles, ...), and expensive.

Both QUED/M and Nisus are powerful, lightening-quick, and robust.


The next best is Rich Siegel's 'BBEdit 2.2' (freeware).
Look at  info-mac/bbedit-22.hqx; 436K, and  bbedit-22-man.hqx; 315K.

This also does powerful, robust and fast grep multifile search.
You select a Folder, and BBEdit searches all files in all 
subfolders in it.

It's "batch mode" output is probably the style of output you have in mind.

As a text editor, it is equally robust as QUED/M, but less featured.
(But it's free!)


Another excellent choice is Pete Keleher's 'Alpha 5.2' (shareware, $25).
This one requires System 7, but it's by far the most powerful Mac editor.
Programmable, unlimited macros, etc., etc.

Multifile search capability is somewhat inferior to QUED/M or BBEdit, 
though.  It can only search all files in one folder at a time (not the 
nested search), and the search is slower.


Two more freeware/shareware choices:

Hiroo Yamada's 'ASLEdit+ 1.0a35' (info-mac/app/asl-edit-10a35.hqx)
(freeware), and 
Kenneth Seah's 'Edit II 2.11' (info-mac/app/edit-ii-211.hqx; 95K)
(shareware, $15).

Both have the standard set of grep multifile search.


I have all of them but I use BBEdit for multifile search,
QUED/M for complicated GREP search/replace and file comparison, and 
Alpha 5.2 for everything else.


Hope this helps.

Mark
--
Mark Nagata
nagata@kurims.kyoto-u.ac.jp

-- 
Joung-woo John Kim				joungwoo@mensa.usc.edu
Computer Science Dept.
University of Southern California, Los Angeles, CA 90089-0781

Newsgroups: comp.sys.mac.misc,comp.sys.mac.system