Link to home
Start Free TrialLog in
Avatar of rickyr
rickyr

asked on

Samba and ^M at the end of each line???

Hi...
Does anyone know the Conf setting to filter
^M from the end of lines in a text file when sending over the network.
regards
ASKER CERTIFIED SOLUTION
Avatar of rhugga
rhugga

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
in vi it's:

:% s/^M//g

where you type  ^M  as Ctrl-V followed by return.

rickyr, this is not a samba problem, but one of the file format and/or the program your're using to look at the file. Most newer vi versions have a
   set textmode
to do this conversion automatically.
Also check if you have dos2unix, d2u, or equivalent.
Avatar of rickyr
rickyr

ASKER

Thanx both!