unbuffering shell pipelines
supadupa at gmail.com
Fri Nov 18 14:43:12 MST 2011
I found what I think is a pretty good explanation what happens when shell
pipelines are stacked, and real time output stalls.
tail -f messages
real time, lots of noise.
tail -f messages | grep -F ip.ip.ip.ip
not so real time, just what I want.
Why can't I have both?
tail -f messages | stdbuf -oL grep -F ip.ip.ip.ip
real time, just what I want.
More information about the PLUG