grep

wrobell wrobell at pld-linux.org
Tue Feb 22 18:59:49 CET 2005


On Tue, Feb 22, 2005 at 06:07:20PM +0100, Marcin 'Qrczak' Kowalczyk wrote:
> wrobell <wrobell at pld-linux.org> writes:
> 
> > yep... but it is going to work non-recursively when set of input files is
> > small (output file is not written to disk yet), otherwise it will hog my
> > hd. and it is not deterministic, so it is not a feature but bug, imho.
> 
> A bug in what? grep can do nothing to prevent this. Nor can bash.
when grep opens file, then it could check the size of the file, then
read appropriate amount of bytes instead of reading until end of file.

    wrobell <wrobell at pld-linux.org>




More information about the pld-devel-en mailing list