This is the mail archive of the cygwin-talk mailing list for the cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: My pipe flushes late


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]