Riccardo Castellani
2011-Nov-09 11:43 UTC
[Samba] R: RE: R: Re: Dos/Unix newline translating
on Debian I'm using VIM 7.2.445 on RedHat I'm using VIM 6.3.82 I verified in both systems with this command : vi -v ----Messaggio originale---- Da: robert.grasso at cedrat.com Data: 9-nov-2011 12.04 A: <ric.castellani at alice.it>, <jdmls at yahoo.com>, <samba at lists.samba.org> Ogg: RE: [Samba] R: Re: Dos/Unix newline translating on Debian it is possible that you are using the orginal VI. On RedHat you must be using ViM (VI Improved). Do you have vim on Debian ? --- Robert GRASSO ? System engineer CEDRAT S.A. 15 Chemin de Malacher - Inovall?e - 38246 MEYLAN cedex - FRANCE Phone: +33 (0)4 76 90 50 45 - Fax: +33 (0)4 56 38 08 30 mailto:robert.grasso at cedrat.com - http://www.cedrat.com> -----Message d'origine----- > De : samba-bounces at lists.samba.org > [mailto:samba-bounces at lists.samba.org] De la part de Riccardo > Castellani > Envoy? : 9 novembre 2011 11:56 > ? : jdmls at yahoo.com; samba at lists.samba.org > Objet : [Samba] R: Re: Dos/Unix newline translating > > But I have another server with RedHat and Samba 3.0.10 > configured in the same way, but I can view correctly text > files which I move to RedHat server. > > > > > ----Messaggio originale---- > Da: jdmls at yahoo.com > Data: 9-nov-2011 11.42 > A: "samba at lists.samba.org"<samba at lists.samba.org> > Ogg: Re: [Samba] Dos/Unix newline translating > > From: Riccardo Castellani <ric.castellani at alice.it> > > if I create a text file in my Windows XP client and I copy it to > > /temporary folder, then I open it by VI editor into my > Debian server and > > I see '^M' at the end of every row. > > How can I solve problem ? Problem references to Dos/Unix newline > > translating ? > > Windows uses '\r\n' and Unix uses '\n'... > Either configure your Windows text editor to use \n, > or use dos2unix or use sed, etc... > A simple google search would have pointed to you to something like: > http://www.cyberciti.biz/faq/howto-unix-linux-convert-dos-newl > ines-cr-lf-unix-text-format/ > > JD > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
This ia a vimrc issue not a samba issue. Google will be your friend. Mat Enders from my BlackBerry? -----Original Message----- From: Riccardo Castellani <ric.castellani at alice.it> Sender: samba-bounces at lists.samba.org Date: Wed, 9 Nov 2011 12:43:23 To: <robert.grasso at cedrat.com>; <jdmls at yahoo.com>; <samba at lists.samba.org> Reply-To: ric.castellani at alice.it Subject: [Samba] R: RE: R: Re: Dos/Unix newline translating on Debian I'm using VIM 7.2.445 on RedHat I'm using VIM 6.3.82 I verified in both systems with this command : vi -v ----Messaggio originale---- Da: robert.grasso at cedrat.com Data: 9-nov-2011 12.04 A: <ric.castellani at alice.it>, <jdmls at yahoo.com>, <samba at lists.samba.org> Ogg: RE: [Samba] R: Re: Dos/Unix newline translating on Debian it is possible that you are using the orginal VI. On RedHat you must be using ViM (VI Improved). Do you have vim on Debian ? --- Robert GRASSO ? System engineer CEDRAT S.A. 15 Chemin de Malacher - Inovall?e - 38246 MEYLAN cedex - FRANCE Phone: +33 (0)4 76 90 50 45 - Fax: +33 (0)4 56 38 08 30 mailto:robert.grasso at cedrat.com - http://www.cedrat.com> -----Message d'origine----- > De : samba-bounces at lists.samba.org > [mailto:samba-bounces at lists.samba.org] De la part de Riccardo > Castellani > Envoy? : 9 novembre 2011 11:56 > ? : jdmls at yahoo.com; samba at lists.samba.org > Objet : [Samba] R: Re: Dos/Unix newline translating > > But I have another server with RedHat and Samba 3.0.10 > configured in the same way, but I can view correctly text > files which I move to RedHat server. > > > > > ----Messaggio originale---- > Da: jdmls at yahoo.com > Data: 9-nov-2011 11.42 > A: "samba at lists.samba.org"<samba at lists.samba.org> > Ogg: Re: [Samba] Dos/Unix newline translating > > From: Riccardo Castellani <ric.castellani at alice.it> > > if I create a text file in my Windows XP client and I copy it to > > /temporary folder, then I open it by VI editor into my > Debian server and > > I see '^M' at the end of every row. > > How can I solve problem ? Problem references to Dos/Unix newline > > translating ? > > Windows uses '\r\n' and Unix uses '\n'... > Either configure your Windows text editor to use \n, > or use dos2unix or use sed, etc... > A simple google search would have pointed to you to something like: > http://www.cyberciti.biz/faq/howto-unix-linux-convert-dos-newl > ines-cr-lf-unix-text-format/ > > JD > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
From: Riccardo Castellani <ric.castellani at alice.it>> on Debian I'm using? VIM 7.2.445 > on RedHat I'm using VIM 6.3.82? Google found: ? http://vim.wikia.com/wiki/File_format Maybe that will solve your problem... JD