My pipe flushes late
Brian Dessent
brian@dessent.net
Wed Aug 20 12:16:00 GMT 2008
Robert Schmidt wrote:
> How can I accomplish this?
Drop a hippo on it?
Seriously though, this is totally the wrong list to ask a serious
question.
Can't you just:
sed -e 's/\x0D//' -e 's/^/prefix: /'
The fact that there's only the one process eliminates the line buffering
in the pipe. Well, presumably there is still a pipe in that you are
piping some unspecified output into this, but presumably also that
output flushes its buffer after each line so that's fine.
Brian
More information about the Cygwin-talk
mailing list