My pipe flushes late

Brian Dessent brian@dessent.net
Wed Aug 20 13:31:00 GMT 2008


Robert Schmidt wrote:

> ... where d2u can probably be removed now.
> It's used to timestamp output from various services, some of which
> output DOS line endings.  E.g. my-service.sh | prefix-time.sh.
> 
> If there was a way to execute a command (date, in my case) from within
> the sed replacement section, I'd be home free with a single sed process
> instead of a chunky bash process lurking about.

my-service.sh | perl -MPOSIX -ne 'print strftime("%F %T ", localtime), $_'



More information about the Cygwin-talk mailing list