Subj : Re: why I always got extra characters after ftp to linux pc To : comp.os.linux From : Dave Date : Thu Jul 08 2004 10:32 pm On Thu, 08 Jul 2004 17:51:10 -0700, hzw wrote: > I can not understand this issue. I use ftp to put some files to linux > pcs, some of them always got extra characters like ^M when I opened it > with "vi -b", but some of them do not have. The more interesting thing > is that, when I upload same file to two different linux pcs, one has > the other doesnot. What does this mean, any config can remove this. > thanks. > > /zhenwu Are you ftp'ing them from a Windows box, where they originated? Sounds like you need to run them through 'dos2unix' first to convert the carriage returns to unix-style newlines. If going the opposite way, use 'unix2dos'. --Dave .