Xref: utzoo comp.unix.wizards:9111 comp.unix.questions:7417
Path: utzoo!attcan!uunet!masscomp!garyo
From: garyo@masscomp.UUCP (Gary Oberbrunner)
Newsgroups: comp.unix.wizards,comp.unix.questions
Subject: Re: grep replacement
Message-ID: <1034@masscomp.UUCP>
Date: 6 Jun 88 02:20:34 GMT
References: <7882@alice.UUCP> <5630@umn-cs.cs.umn.edu> <6866@elroy.Jpl.Nasa.Gov> <4524@vdsvax.steinmetz.ge.com> <1036@cfa.cfa.harvard.EDU> <3503@omepd>
Reply-To: garyo@masscomp.UUCP (Gary Oberbrunner)
Organization: MASSCOMP - Westford, Ma
Lines: 26

The only change I've ever had to make to the source for grep to make it do
what I want was to make it work with arbitrary-length lines.
I consider not handling long lines (and not complaining about them either)
to be extremely antisocial.  All this other stuff is just window-dressing.
Not that it's bad; one integrated grep with B-M strings, alternation and
inversion operators, and nifty feeping creaturism is great by me.

I usually handle the multi-line-record case by tr'ing all the intermediate
line ends into some unused character, doing my database hackery (grep, awk,
sed, what have you) and then tr'ing back at the end.  This is one reason for
having grep support very long lines.

				As always,

				Gary

----------------------------------------------------------------------------
Remember,			Truth is not beauty;      (617)692-6200x2445
Information is not knowledge;	Beauty is not love;	  Gary   Oberbrunner
Knowledge is not wisdom;	Love is not music;	  ...!masscomp!garyo
Wisdom is not truth;		Music is the best. - FZ   ....garyo@masscomp
-- 
Remember,			Truth is not beauty;      (617)692-6200x2445
Information is not knowledge;	Beauty is not love;	  Gary   Oberbrunner
Knowledge is not wisdom;	Love is not music;	  ...!masscomp!garyo
Wisdom is not truth;		Music is the best. - FZ   ....garyo@masscomp