Article View: net.micro.mac
Article #1760grep for mac.
From: Arndt Jonasson
Date: Sat, 15 Jun 1985 01:48
Date: Sat, 15 Jun 1985 01:48
30 lines
1955 bytes
1955 bytes
Some time ago I asked the net if anyone knew of any Mac programs
performing the functions of the Unix programs diff and grep.
Result: The Aztec C includes grep and diff programs, which probably
means you have to buy the Aztec C system (which doesn't seem to be bad,
it was described in MacDeveloper, published on the net some time ago).
The Unix utility wc exists as a desk accessory. I have that one, but I
don't know where I got it.
Otherwise noone could give me a positive answer. So I wrote one myself.
My MacGrep has been posted to net.sources.mac. It was written in Consulair C,
and is rather simple. Only plain strings can be searched for, no regular
expressions. The files searched are all files on a volume with file type
TEXT, e.g. created by EDIT or MockWrite.
There are no fancy Mac-interface bells and whistles; part of the interaction
takes place in a TTY window.
To let you choose a volume, a standard get file dialog window is opened.
Choose the volume you want to search, and select the Open button. It doesn't
matter which file you have selected. All files are shown, not just the
TEXT ones.
If I had time, I would include the possibility to search MacWrite files,
MS Word files, search for general regular expressions, make the interface
more Mac-like, search files whose name match a certain pattern...
--
Arndt Jonasson, ZYX Research, Stockholm
uucp: {decvax, philabs}!mcvax!enea!ttds
Technical Details
Message-ID:
<985@ttds.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!mcvax!enea!ttds!arndtShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC840302); site ttds.UUCP Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!mcvax!enea!ttds!arndt From: arndt@ttds.UUCP (Arndt Jonasson) Newsgroups: net.micro.mac Subject: grep for mac. Message-ID: <985@ttds.UUCP> Date: Fri, 14-Jun-85 21:48:29 EDT Article-I.D.: ttds.985 Posted: Fri Jun 14 21:48:29 1985 Date-Received: Tue, 18-Jun-85 04:46:07 EDT Organization: The Royal Inst. of Techn., Stockholm Lines: 30