How to remove ^M character

C Peter Biessener pbiessener at hirshfields.com
Mon Aug 4 08:09:05 PDT 2003


You can also use ASCII mode in ftp, it will translate the line ends for 
you.  BINARY mode is for programs and archive files (zip, tar, tgz, etc...)

Simon Barner wrote:
> Hi,
> 
> 
>>I ftp'd a file from windows to freebsd....not its every line has ^M at its
>>end.
>>Is there some command in vi (or some way) by whcih ^M can be removed.
> 
> 
> You can use dos2unix(1) for that. There is also the complementary tool
> unix2dos(1).
> 
> Simon



More information about the freebsd-questions mailing list