^M Character gets appended to every Line in jsp page
Eric Donkersloot
eric.donkersloot at gmail.com
Tue Apr 18 13:14:45 UTC 2006
Have you tried dos2unix ?
On 4/18/06 2:57 PM, "Kaushal Shriyan" <kaushalshriyan at gmail.com> wrote:
> On 4/18/06, Neil Cherry <ncherry at comcast.net> 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 at linuxha.com
>> 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 at redhat.com
>> 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
>
> Thanks again
>
> Any Clue
>
> Regards
>
> Kaushal
--
Eric Donkersloot
Amsterdam, The Netherlands
eric.donkersloot at gmail.com
More information about the users
mailing list