This is the mail archive of the
cygwin-talk
mailing list for the cygwin project.
Re: My pipe flushes late
- From: Brian Dessent <brian at dessent dot net>
- To: The Vulgar and Unprofessional Cygwin-Talk List <cygwin-talk at cygwin dot com>
- Date: Wed, 20 Aug 2008 05:15:50 -0700
- Subject: Re: My pipe flushes late
- References: <g8h0l5$dv8$1@ger.gmane.org>
- Reply-to: The Vulgar and Unprofessional Cygwin-Talk List <cygwin-talk at cygwin dot com>
- Reply-to: The Vulgar and Unprofessional Cygwin-Talk List <cygwin-talk at cygwin dot com>
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