grep

Łukasz Jernaś deejay1 at nsj.srem.pl
Tue Feb 22 19:04:24 CET 2005


Dnia wtorek, 22 lutego 2005 18:59, wrobell napisał:
> 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.

Then it would be somewhat useless on log files created by syslog, because new 
entries are added on the fly and one would not like to skip such extra 
data...

-- 
Łukasz [DeeJay1] Jernaś
"PLD wspiera tych uzytkownikow, ktorym PLD dziala." - djurban
"Dopóki nie skorzystałem z Internetu, nie podejrzewałem,
 że na świecie jest tak wielu idiotów" - Stanisław Lem




More information about the pld-devel-en mailing list