Hi, @Bjoern: Well, no linefeeds will give me one big line of text, making grep return the complete line, so no-go. @Thomas I only have one version, so a diff would not make sense here. Besides, it seems the BBE cli commands hands over the request to the actual BBEdit app, in stead of using the 'engine' from the app. Thanks for the input though... ____________________________________________ 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 On 27. okt 2004, at 15:01, Thomas Juntunen wrote: > 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 > >