Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: 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: <19990929133024.13820.rocketmail@web125.yahoomail.com> Date: Wed, 29 Sep 1999 06:30:24 -0700 (PDT) From: Earnie Boyd Reply-To: earnie_boyd AT yahoo DOT com Subject: Re: Making Cygwin write DOS style text files To: Rabbe Fogelholm , cygwin AT sourceware DOT cygnus DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- Rabbe Fogelholm wrote: > Hi all, > > I am new to the list; hope this is not a FAQ ( I have read the "How is > the DOS/Unix CR/LF thing handled?" FAQ entry). > > My problem: I want to manipulate a text file under Win32, using Cygwin > Tools (grep, sed etc). The resulting file has Unix-style line ends > (single LF) and looks unreadable when opened with Notepad. > > My best solution thus far: Filter the text through gawk > '{printf("%s\015\n",$0);}' . > > This works, but is there a neater solution? Don't use Notepad use Wordpad or Write. It handles the UNIX style line endings. ===== Earnie Boyd Newbies, please visit (If you respond to the list, then please don't cc me) __________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com