--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