Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <3938C5FB.6A74BDE0@vinschen.de> Date: Sat, 03 Jun 2000 10:46:51 +0200 From: Corinna Vinschen Reply-To: cygwin X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.14 i686) X-Accept-Language: de, en MIME-Version: 1.0 To: Bob McGowan CC: cygwin AT sourceware DOT cygnus DOT com Subject: Re: New sed in latest References: <20000602203057 DOT 18834 DOT qmail AT web115 DOT yahoomail DOT com> <39384BD0 DOT CCD607DA AT veritas DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Bob McGowan wrote: > But sed writes to standard output. So the correct answer (I think) is > that, to capture the "dos2unix" output, the script would need to be > redirected to a file. If the file is in a binary mounted environment, > then it will be UNIX format, if it is text mounted it would continue to > be DOS format. > > Is this an accurate analysis? Indeed. To get rid of the \r you only have to start sed now, doing nothing but writing it's input to a binary mounted output file. Corinna -- Corinna Vinschen Cygwin Developer Cygnus Solutions, a Red Hat company -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com