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:

> 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


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