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