Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Handling ^M's in text files
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