Re: match across line using grep
- From: Andre Majorel <aym-naibed@xxxxxxxxx>
- Date: Tue, 3 Aug 2010 14:39:49 +0200
On 2010-08-03 19:37 +0800, Zhang Weiwu wrote:
On 2010???08???03??? 17:53, Andre Majorel wrote:
But grep -z does. This would seem to be an undocumented$ printf 'a\nb' | grep -zo a.*b
(The above should output something /if/ -z would make egrep
not consider \n as string terminator. But it has produced no
output)
limitation of -o.
No it doesn't.
$ printf 'a\nb' | grep -z 'a.*b'
$
You're welcome. What version of grep ?
--
André Majorel <http://www.teaser.fr/~amajorel/>
If the Debian project published their users' email addresses,
we'd be getting spam. So I'm glad they don't.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/20100803123949.GA4007@xxxxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: match across line using grep
- From: Bob McGowan
- Re: match across line using grep
- References:
- match across line using grep
- From: Zhang Weiwu
- Re: match across line using grep
- From: Andre Majorel
- Re: match across line using grep
- From: Zhang Weiwu
- match across line using grep
- Prev by Date: Re: GNOME screensaver's abnormal behaviour
- Next by Date: Onboard ethernet adapter lights not flash anymore... Network not connect too!
- Previous by thread: Re: match across line using grep
- Next by thread: Re: match across line using grep
- Index(es):
Relevant Pages
|