|
From: | Bauke Jan Douma |
Subject: | Re: grep Subject: Grep Never Stops Bug. |
Date: | Wed, 08 Apr 2009 18:39:07 +0200 |
User-agent: | Thunderbird 2.0.0.21 (X11/20090318) |
Martyn Braithwaite wrote on 04/07/2009 11:51 AM:
Hello!You probably know about this bug already... but here it is anyway... weizen09$ cat /etc/SuSE-releaseSUSE LINUX Enterprise Server 9 (x86_64) VERSION = 9 PATCHLEVEL = 4 weizen09$ weizen09$ time grep -n -A 22 310260504296323 * > Sorting.ldifreal 0m1.739suser 0m1.418s sys 0m0.321s weizen09$ du -h * 428M jrep_24032009_6 433M jrep_25032009_1 1.1G N-A 24K Reconstruction 20K Sorting.ldif weizen09$ time grep -n -A 22 310260504296323 * > Sorting.ldif<never stops>
Because it now finds the string in Sorting.ldif, appends it to Sorting.ldif, etc. In other words, it's feeding itself ;-) bjd
[Prev in Thread] | Current Thread | [Next in Thread] |