Jonathan Jefferies wrote:
>
> "Jimmy C. Thomson" wrote:
> >
> > A text file is just a text file, no conversion needed.
> >
>
> Yes and no. Believe there is a difference in that unix uses just
> a LF to terminate a line while dos most often uses a CRLF.
> And the CRLF makes the text look weird. You can correct
> this with vi, tran and I believe I have a utility called
> dos2unix.
>
> Jonathan
There is the dos2unix util. also, what I am constantly editing is HTML
(etc), created by others in something like wordpad. The ^M is generated
at end of line or when return is entered.(referencing above statement)
I use this command to globally delete these characters:
:g/<control v><control m>/s///g
save file.
it tells it to globally search (file) and replace (s=substitute) ^M with
nothing. end global search.
Stephen