|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Problem with file on FTPing it
Hi.
I sent a file to my Solaris Server SunOS 5.9 by FTP from my windows system. But on reaching there '^M' has been added at the end of every line. Why has this happenned and how to prevent it? Thanks in advance. Abhishek |
|
#2
|
|||
|
|||
|
No, it had that before - they just didn't show in Windows because windows uses that as part of the new line string.
There are a variety of ways to fix this but under Solaris the easiest way is to use the dos2unix command. Do a "man" on that and you can see how to run it. It will get rid of the ^M's. However, realize that if you send the file back to Windows it may be counting on them to be there. In that case use the unix2dos command to convert the file back to DOS format.
__________________
Need Java help? Want to help people who do? Sit down with a cup of Java at the hotjoe forums. |
|
#3
|
|||
|
|||
|
It Works!!
Thanks a lot.. it works wonderfully
![]() |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Problem with file on FTPing it |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|