Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sourceware.cygnus.com Delivered-To: mailing list cygwin@sourceware.cygnus.com Message-ID: <20000602203057.18834.qmail@web115.yahoomail.com> Date: Fri, 2 Jun 2000 13:30:57 -0700 (PDT) From: Earnie Boyd Reply-To: earnie_boyd@yahoo.com Subject: Re: New sed in latest To: Charles Wilson , cygwin@sourceware.cygnus.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- Charles Wilson wrote: > So, with the new sed behavior the following is no longer going to work, > right? No, not right. > > ---dos2unix---- > #!/bin/bash > sed 's/^M//' $1 > --------------- > > Where the '^M' is generated by pressing CTRL-V, CTRL-M. > In text mode, it is the \n that terminates the read. If there is a \r preceding the \n it will also be removed and the count read reduced by one. If there is no preceding \r then the count returned is the number actually read. Cheers, ===== --- Earnie Boyd: __Cygwin: POSIX on Windows__ Cygwin Newbies: __Minimalist GNU for Windows__ Mingw32 List: Mingw Home: __________________________________________________ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com