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-newlines-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
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 >
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 >