Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Handling ^M's in text files

Re: Handling ^M's in text files

From: Albert Minich <Albert_77_at_gmx.net>
Date: 25 Oct 2002 14:00:15 GMT
Message-ID: <Xns92B2A2CF59735110oo011@139.2.1.5>


Ubiquitous meinte:

> I'm sure this is a silly question, but sometimes when one FTPs
> files bewteen a DOS and UNIX environment, the "end of line"
> markers show up as "^M" in the file. Is there a utl_file
> package one can use to scrub these from a file? I sppse one
> could rewrite the file sans the last character, but one would
> then have to test for "^M" to keep from dropping characters
> without the markers in it...
>
>

In vi editor, do a
:%s/^M//g

To get the ^M hold the control key, press V them M

Albert Minich Received on Fri Oct 25 2002 - 09:00:15 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US