: Hi
:
: I am not a Unix expert and therefore this question may sound silly.
: I need to get a file from a database-application called Notebook, the
: application is on a network running on Unix. I need to copy this file
: from the server into DOS format or ASCII raw text/data. How do I go
: about it?
I assume the file on Unix is a text file. Unix uses the single
character 'newline' (ASCII 10 decimal, called linefeed) to mark
line ends. The scourge from the Evil Empire uses two characters
to mark line ends, 'carriage return' (ASCII 13 decimal) and 'linefeed'.
The easiest way to get the line endings converted is to use 'ftp'
in ASCII mode. ftp will convert them for you.
Some systems have a unix2dos command to do this.
Or, you can roll your own using a general purpose programming language.
It is extremely simple to do this using a Perl one-liner:
perl -p -e 's/\n/\r\n/' unix_format_file >silly_format_file
: Thanks in advance
Hope this helps!
--
Tad McClellan SGML Consulting
Tag And Document Consulting Perl programming