unbuffering shell pipelines
jon at endpoint.com
Fri Nov 18 17:41:27 MST 2011
On Fri, 18 Nov 2011, Scott Edwards wrote:
> tail -f messages | stdbuf -oL grep -F ip.ip.ip.ip
> real time, just what I want.
Nice. I didn't know stdbuf is part of GNU coreutils -- having it (nearly)
everywhere makes it pretty handy to know.
I noticed that your example above can also be done with GNU grep
--line-buffered, which the article mentions as well.
Thanks for posting that.
End Point Corporation
More information about the PLUG