On Tue, Sep 23, 2003 at 10:12:55AM -0400, Zhang, John
wrote:> Hi,
>
> I was able to rsync files from Windows 2000 to Solaris 8 but when I opened
> the text files with vi on solaris, a '^M' char was appended to each
line of
> the files. My question is how to get rid of that '^M' when
rsync'ing ? I
> suspect this is because Windows and Unix treat line feed/carriage return
> differently, but I just do not want that '^M' shown in the files
after
> rsync'ed to Unix. Can rsync itself handle this?
No.
If you are going to synchronise the files you either live
with the <cr> in UNIX or live without it in DOS.
Some of the text editors in Windows will happily edit files
with <lf> for termination.
Vim has a fileformat option that may be of some help.
--
________________________________________________________________
J.W. Schultz Pegasystems Technologies
email address: jw@pegasys.ws
Remember Cernan and Schmitt