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



Kaushal Shriyan wrote:
On 4/18/06, Neil Cherry <ncherry@xxxxxxxxxxx> 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.

--
Linux Home Automation Neil Cherry ncherry@xxxxxxxxxxx
http://www.linuxha.com/ Main site
http://linuxha.blogspot.com/ My HA Blog
http://home.comcast.net/~ncherry/ Backup site

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


Thanks Neil for the quick response,I am transferring the file from
Linux Box A to Linux Box B
I tar the file on Linux Box A and ftp to Linux Box B and untar it on Linux Box B
and when I open the File I see at the end of every Line ^M

Where did the file come from, sounds like the original file was
a Windows/DOS file. You can use dos2unix on the file like this:

dos2unix file

that will get rid of the ^M characters (and the ^Z that may lurk
at the bottom of the file).

--
Linux Home Automation Neil Cherry ncherry@xxxxxxxxxxx
http://www.linuxha.com/ Main site
http://linuxha.blogspot.com/ My HA Blog
http://home.comcast.net/~ncherry/ Backup site

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: Future of IT in Lebanon
    ... It's the same Linux code base. ... Microsoft Office on a Windows server, it will install and run fine, the main ...
    (soc.culture.lebanon)
  • Re: Question about Red Hat Linux Enterprise
    ... we have is running Windows 2000 Server ... Luckily running Apache + MySQL on a Linux system is not a lot ... MySQL database and injecting it back into the MySQL installation ...
    (comp.os.linux.networking)
  • Re: Sweet Success
    ... Let's continue to assume that I prefer Windows to anything else: ... neither Linux nor Windows may be the answer. ... While it may well be initially less expensive to install a Linux-based ... of Linux simultaneously, along with Windows Server, AIX, and OS/400. ...
    (RedHat)
  • Re: [Full-disclosure] 70 million computers are using Windows 98 right now
    ... Linux is definitely not a natural migration pathway. ... Windows 2000, Windows XP, and Mac OS X seem to work pretty ... > desktop to server. ... But then the persons across the sea just can't install ...
    (Full-Disclosure)
  • Re: Benutzerkontenverwaltung mit Win 2003 Server - Teil 2
    ... und dann bin ich über Solaris zur ersten 30-Disketten-Version Linux ... Server auch keine grafische Oberfläche, der vi ist halt mein bester ... Und das ganze geht schon in Ansätzen seit Windows NT so ... > Unternehmensnetzwerk unter Unix administrieren könnte. ...
    (microsoft.public.de.german.windows.server.networking)