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

Kuestner, Bjoern Bjoern.Kuestner at drkw.com
Wed Oct 27 05:11:41 PDT 2004


You could maybe pipe it through sed first and remove all the line breaks,
then keep the pipe going to grep and to the usual magic.

Björn



-----Original Message-----
From: x-unix-bounces at listserver.themacintoshguy.com
[mailto:x-unix-bounces at listserver.themacintoshguy.com]On Behalf Of Jakob
Peterhänsel
Sent: 27 October 2004 14:05
To: A place to discuss Mac OS X from the perspective of the command line.
Subject: [X-Unix] Any CLI multi-line regex find utilities out there?


Hi All, 


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' 


Any help appreciated! 


____________________________________________ 
Jakob Peterhänsel 
Network Consultant 
Tel: +45 7022 1014 
Fax: +45 7022 1013 
Mob: +45 22 68 49 61 
jp at netpoint.com 
www.NetPoint.com 


--------------------------------------------------------------------------------
The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express
written permission of the sender. If you are not the intended recipient, please
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 3167
--------------------------------------------------------------------------------



More information about the X-Unix mailing list