in reply to convert files unix2dos using perl script
perl -i.bak -pe 's/\012/\015\012/g' infile
Courtesy to "format_c" and others at perl-community.de
Update:
Come to think of it, the funny thing is, transferring the files in ASCII mode should actually have taken care of the newline translation: that's what I believed that mode was for. Maybe your ftp client or the host's ftp server have a bug there.
Cheers, Sören
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: convert files unix2dos using perl script
by jfroebe (Parson) on Jun 21, 2004 at 03:20 UTC |