From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7787 invoked by alias); 20 Aug 2008 12:40:23 -0000 Received: (qmail 7777 invoked by uid 22791); 20 Aug 2008 12:40:23 -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 12:39:45 +0000 Received: from localhost.localdomain ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.50) id 1KVmyU-0003mu-Gd for cygwin-talk@cygwin.com; Wed, 20 Aug 2008 12:39:42 +0000 Message-ID: <48AC108E.1D666660@dessent.net> Date: Wed, 20 Aug 2008 12:40: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: 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/msg00052.txt.bz2 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