Re: match across line using grep



On 2010-08-03 19:37 +0800, Zhang Weiwu wrote:
On 2010???08???03??? 17:53, Andre Majorel wrote:
$ 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)

But grep -z does. This would seem to be an undocumented
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



Relevant Pages

  • Re: Plz Help
    ... > Could u plz help me? ... Sounds like a limitation of your filesystem. ... trying to write to Fat32? ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org ...
    (Debian-User)
  • Re: Display is jerky...........
    ... AIGLX: Screen 0 is not DRI capable ... video card and driver you are using. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: How to make work dual monitors with Debian etch on an IBM x60s ThinkPad?
    ... 945GM/GMS/940GML Express Integrated Graphics Controller ... [snip: similar AIGLX warnings] ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: NVIDIA card & lenny
    ... Including the default font ... Registered Linux user # 367800 ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • RE: maximum memory capacity
    ... Thanks, my understanding on 32-bit based platforms, the limitation is 4GB. ... Chiu, PCM (Peter) wrote: ... Something says to me that the standard Fedora kernel is setup for 4GB (I ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list -- ...
    (Fedora)