[X-Unix] Any CLI multi-line regex find utilities out there?

Scott J. Kramer x-unix at sjk.us
Wed Oct 27 11:27:29 PDT 2004


--On Wednesday, October 27, 2004 14:04 +0200 Jakob Peterhänsel 
<jakob at hjemme.dk> wrote:

> So, is there any CLI solutions out there that can return a match on text
> over multi lines???

If Thomas Juntunen's command line BBEDIT suggestion doesn't work you might
try agrep.  There's one bundled with TRE:

  <http://laurikari.net/tre/>

> I would like to do something like:
>
> echo 'my very long text from a email body' | myRegexCmd 'regex
> expression'

Not quite sure what you're trying to do but using echo if the "very long
text" string has multiple lines may prove to be troublesome.

-sjk



More information about the X-Unix mailing list