From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26704 invoked by alias); 20 Aug 2008 13:31:46 -0000 Received: (qmail 26694 invoked by uid 22791); 20 Aug 2008 13:31:45 -0000 X-Spam-Check-By: sourceware.org Received: from dessent.net (HELO dessent.net) (69.60.119.225) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 20 Aug 2008 13:30:53 +0000 Received: from localhost.localdomain ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.50) id 1KVnly-0003u7-Ky for cygwin-talk@cygwin.com; Wed, 20 Aug 2008 13:30:50 +0000 Message-ID: <48AC1C89.A4B41767@dessent.net> Date: Wed, 20 Aug 2008 13:31:00 -0000 From: Brian Dessent Reply-To: The Vulgar and Unprofessional Cygwin-Talk List X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: The Vulgar and Unprofessional Cygwin-Talk List Subject: Re: My pipe flushes late References: <48AC108E.1D666660@dessent.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-talk-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cygwin-talk-owner@cygwin.com Reply-To: The Vulgar and Unprofessional Cygwin-Talk List X-SW-Source: 2008-q3/txt/msg00055.txt.bz2 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), $_'