From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22840 invoked by alias); 20 Aug 2008 12:16:29 -0000 Received: (qmail 22777 invoked by uid 22791); 20 Aug 2008 12:16:29 -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:15:54 +0000 Received: from localhost.localdomain ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.50) id 1KVmbP-0003kC-On for cygwin-talk@cygwin.com; Wed, 20 Aug 2008 12:15:52 +0000 Message-ID: <48AC0AF6.A0AEBE10@dessent.net> Date: Wed, 20 Aug 2008 12:16: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/msg00051.txt.bz2 Robert Schmidt wrote: > How can I accomplish this? Drop a hippo on it? Seriously though, this is totally the wrong list to ask a serious question. Can't you just: sed -e 's/\x0D//' -e 's/^/prefix: /' The fact that there's only the one process eliminates the line buffering in the pipe. Well, presumably there is still a pipe in that you are piping some unspecified output into this, but presumably also that output flushes its buffer after each line so that's fine. Brian