in reply to Convert file to unix
Lots of FTP tools like FireFTP know about this and convert automatically. Update: Oh my gosh, I must admit that even Win IE know how to do this.
I don't know how many files that you have to do this with, but say you have used binary ftp to transfer a "dos.text" to a Unix system, Open that file in vi and then save it. That blows way these <CR>'s, in Perl,'C', the \r chars away. That's it.
However normally, if you FTP in "text mode" that happens automatically in either direction for you. Or at least that is very likely. This is NOT "rocket science": to go to Unix from Windows delete the \r characters. To go from Unix to Windows, add a \r before each \n that doesn't already have a \r before it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Convert file to unix
by james2vegas (Chaplain) on Aug 19, 2009 at 10:19 UTC | |
by Bloodnok (Vicar) on Aug 19, 2009 at 10:31 UTC | |
by james2vegas (Chaplain) on Aug 19, 2009 at 10:47 UTC | |
by Bloodnok (Vicar) on Aug 19, 2009 at 10:58 UTC | |
by james2vegas (Chaplain) on Aug 19, 2009 at 11:11 UTC | |
|