My pipe flushes late

Brian Dessent
Wed Aug 20 12:40:00 GMT 2008

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


More information about the Cygwin-talk mailing list