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

Thomas Juntunen juntunen at crc-inc.com
Wed Oct 27 06:01:13 PDT 2004


On 10/27/2004 07:04, "Jakob Peterhänsel" <jakob at hjemme.dk> wrote:

> I though grep could do it, as BBEdit's version can, but got
> disappointed. Grep can't find over multi-lines...
> 
> So, is there any CLI solutions out there that can return a match on
> text over multi lines???
> 
> I would like to do something like:
> 
> echo 'my very long text from a email body' | myRegexCmd 'regex
> expression'

BBEdit provides a command line version of itself. Open the preferences
dialog, select Tools and you should find a button to "Install Command Line
Tools". Versions 6 and 7 have the 'bbedit' command; version 8 added
'bbdiff'. If BBEdit can do it, I expect the shell command can as well. Man
pages are included in the install.

HTH,
Thomas Juntunen
Network Administrator
CRC Marketing Solutions




More information about the X-Unix mailing list