[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Simple Unix utility?

"Scott K. Ellis" <storm@gate.net> writes:

> On Sat, 6 Dec 1997, [iso-8859-1] Nicolás Lichtmaier wrote:
> > > Now I notice that "cut" seems to buffer everything up.
> >
> >  You should file a bug against cut, it should do line buffering when output
> > is a tty.
> It may be something in the middle of the pipe doing the buffering.  Not
> certain how to handle that case.

Yes, that's the case - I had grep in the pipe before cut.


tail -f var/log/access.log | grep -v 'gif' | cut -c1-150

Maybe I'll just use a little perl script (with $|=1) to do the filtering I
want - that's probably easiest.


 - Jim

Attachment: pgpowcVbwBcJj.pgp
Description: PGP signature

Reply to: