[Samba] Dos/Unix newline translating

John Doe jdmls at yahoo.com
Wed Nov 9 03:42:41 MST 2011


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


More information about the samba mailing list