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:39:42 -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:
> I know I can probably write one sed script to replace the above pipe,
> but my prefix is actually not static (should be a time stamp).
Oh, I missed that qualifier. So, what you really mean is that sed is a
total red herring as you aren't actually using sed but something else
entirely in the real application? Anyway, if you absolutely must have a
d2u that is line buffered instead of full buffered then you can use
perl -pe 'BEGIN { $| = 1; } s,\r$,,;' | whatever_the_actual_thing_is
Brian