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:

> ... 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), $_'


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