On Fri, 18 Nov 2011, Scott Edwards wrote:

> http://www.pixelbeat.org/programming/stdio_buffering/
>
> 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.

Jon

-- 
Jon Jensen
End Point Corporation
http://www.endpoint.com/

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to