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 sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3A7AF22D.895A9DD6@ece.gatech.edu> Date: Fri, 02 Feb 2001 12:45:17 -0500 From: "Charles S. Wilson" X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: bkeener AT thesoftwaresource DOT com CC: cygwin Subject: Re: How do I remove CR/LF from text file References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Try the d2u program at http://www.neuro.gatech.edu/users/cwilson/cygutils/V1.1/misc/ --Chuck Brian Keener wrote: > > I was working on some code and output a text file which displays fine in > cygwin but I wanted to email the text to someone from within windows and > if I look at the text in wordpad it looks fine but if I look at it in > notepad then it is screwy and in either case if I try to cut and paste > into my email program then the text is still real screwy and I don't want > to have to edit it. I assume this is a CR/LF issue - not a bug - I just > can't figure out how to change it. > > The text was originally created by sending to /tmp/foo which is on / > which is a binary mount and so I did a > > cat /tmp/foo > /windows/temp/foo > > in which case /windows is a text mount thinking this would fix it, but it > does not. If I however go back and recreate the text file by outputting > it to /windows/temp/foo in the first place - then wordpad, notepad and my > email on like it, again I am assuming this is CR/LF related but that is > an assumption. > > Can someone provide me with a line that allows me to do a conversion > after the fact like this or is there such a beast - On some unixen we had > dos2unix and such. > > Thanks for any input. > > -- > Want to unsubscribe from this list? > Check out: http://cygwin.com/ml/#unsubscribe-simple -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple