Re: ^M Character gets appended to every Line in jsp page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 18 Apr 2006, Neil Cherry wrote:

Kaushal Shriyan wrote:
Hi All

I have a unusual issue is that I transfer the file from one server to
another server
through FTP Client, and when I open the downloaded file I see that at
the end of every Line of the file I see ^M

I do not understand at ALL

I have choosen a Binary option while downloading

Are you transferring from Windows to Linux? If the file is a text
file then don't use binary. This will convert files that have been
created under Windows (such as Notepad) to have their line endings
converted to Unix line endings. Windows uses a line ending of ^M^J
(carriage return and line feed). Unix uses ^J (line feed).

The binary transfer mode is meant for things where you want no
conversions to take place such as ISO image or an executable
file.

There is also a program called "dos2unix" that will allow you to convert to the proper line endings.

yum install dos2unix

--
"Waiter! This lambchop tastes like an old sock!" - Sheri Lewis


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux