On 2010年08月03日 17:53, Andre Majorel wrote:
/if/ -z would make egrep not consider \n as string terminator. But it has produced no output)$ printf 'a\nb' | grep -zo a.*b (The above should output somethingBut grep -z does. This would seem to be an undocumented limitation of -o. No it doesn't. $ printf 'a\nb' | grep -z 'a.*b' $ |