delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/01/18:08:53

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <39874ABB.C9DA35B@veritas.com>
Date: Tue, 01 Aug 2000 15:10:03 -0700
From: Bob McGowan <rmcgowan AT veritas DOT com>
Organization: VERITAS Software
X-Mailer: Mozilla 4.73 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Paul Garceau <pgarceau AT teleport DOT com>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Cygwin 1.1.3-1 (g++) parser not sure how to deal with continuation
'\'
References: <3986E3BC DOT 31735 DOT 71CED2 AT localhost>

Several UNIX environments provide dos2unix/unix2dos commands.  The
DJGPP  package includes a d2u/u2d that will process multiple files
(these may be on the web site:  www.delorie.com; I have them from a CD).

And sed can do it too:

    sed 's/^M$//' dosfile > unixfile

You may also need to deal with deleting a ^Z character at the "end" of
the file.  Using vi to create a script, you would need to use the ^V
escape method to enter the literal ^M.  I used the dollar sign to
replace only carriage returns at the end of lines, in case there is one
elsewhere in the file that should not change - not likely, but no need
to take chances;-)

Paul Garceau wrote:
> 
> On 1 Aug 2000, at 8:48, the Illustrious 13mb80000-HallM(10053584)37x1 wrote:
> 
> > >    Example:
> > >
---deleted example code and explanation---

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan AT veritas DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019