Cntrl-M characters ...
Strömberg Peter
Peter.Stromberg at scania.com
Thu May 20 11:28:45 GMT 1999
Or, maybe preferably, use text editors in Windows that honour the native
line endings of a file, be it Mac, Unix or DOS. Textpad is one such text
editor. Then you'll only occationally encounter those ^Ms. They're pretty
easily disposed of from vi:
:%s/^M$//
(That's a ctrl-v ctrl-m sequence, not the ^ character.)
Regards,
/Peter Strömberg
> Date: Wed, 19 May 1999 17:09:47 -0700
> From: RICK_ at t-online.de (JUERGEN ANZER)
> To: kkrishna at ipcell.com
> Subject: Re: Cntrl-M characters ...
> Message-ID: <374352CB.7553 at t-online.de>
>
> Krishna Kurpati wrote:
> >
> > Hi,
> >
> > I am using Samba 1.9.18. The server is running on Solaris 2.5.1 and
> the client is on Win NT 4.0
> >
> > I am annoyed by the Control-M characters appearing in text files
> when the files are edited on Windows
> > editors and viewed in vi on Sun machine. I had to manually remove
> the Control-M characters.
> >
> > Is there a way to eliminate the Control M characters ?
> >
>
> Use some util like "unix2dos" and "dos2unix" (included in our SCO
> system)
> or some shell script that does the translation for you. SAMBA doesn´t.
>
> best regards
> rick
>
More information about the samba
mailing list