[Top][All Lists]

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

Re: Piping tail -f to fold: tail -f log.txt | fold

From: Bob Proulx
Subject: Re: Piping tail -f to fold: tail -f log.txt | fold
Date: Fri, 9 Jan 2009 13:38:35 -0700
User-agent: Mutt/1.5.13 (2006-08-11)

Pádraig Brady wrote:
> Bob Proulx wrote:
> > In summary it is all about I/O buffering happening in libc's output
> > routines.  If the output is not a tty then data is buffered for
> > performance reasons into larger chunks before writing.
> Well tail -f flushes stdout so it's not actually the problem in this case.

Oh!  Oops.  I had assumed it was tail -f.  But testing this now I see
that I was mistaken.  Sorry for the misinformation.  Thanks for the

Testing 'tail -f | fold -s' this on my Debian systems (Etch and Lenny)
does not show the buffering issue and works as desired by the original


reply via email to

[Prev in Thread] Current Thread [Next in Thread]