[Gllug] Bug in grep? Surely not ...

John Southern john at sinoda.demon.co.uk
Tue Sep 20 14:07:37 UTC 2005


On Tuesday 20 September 2005 15:06, Richard Jones wrote:
> I have this rather large data file, and I want to get out just the
> non-zero rows:
>
>   http://annexia.org/tmp/col4
>
> So:
>
>   egrep -v '^0\.$' < /tmp/col4
>
> works fine.
>
> BUT if I redirect the output to a file, grep hangs consuming 100% CPU,
> but strace shows its not doing anything at all.
>
>   egrep -v '^0\.$' < /tmp/col4 > /tmp/costs

Ran fine here. Takes a while though.
Output file is 3555 butyes in size

John
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list