end of line character

Cathy Benney cathy at ncelvax.UUCP
Fri Jul 7 10:20:19 AEST 1989


Hello.  I am developing procedures to transfer files via tape from our 
VAX 11/730 to a COMPAQ PC which has a Qualstar tape drive attatched. 
I am running UNIX 4.3BSD, and I am downloading the files with both
the "tar" and the "dd" commands.  Qualstar has software which allows 
me to upload the files onto pc- and it works well as long as I am
transferring binary files.  Unfortunately, the UNIX-DOS transfer is
encountering problems with text files that I have created with "vi".
On the dos side, it reads the UNIX end-of-line character as just a
new line, without the carrige return.  Thus, whereas the UNIX file
might look like this:
		Mary had a little lamb.
		Its fleece was white as snow.
		And everywhere that Mary went,
		The lamb was sure to go.

The dos version makes the text look like this:

	Mary had a little lamb.
				Its fleece was white as snow.
							      And everywhere that Mary went, 
	     The lamb was sure to go.
-------------------------------------------------
Something like that.  It sees the new line, but not the carrige return.

Has anyone out there been able to fix this problem?  We use mcp for
transfer of individual files from unix to pc via sytek, but the tape
procedure would be very helpful in transferring large files or entire 
directories.  What is the UNIX end-of-line character?  I can simulate
end-of-line by physically inserting ^L^M at the end of every line of text- 
that will be recognized on both the UNIX and DOS sides.  What I'd really 
like to do, tho, is write a little C program or maybe something in sed that 
will find every occurrence of the "eol" and replace it with ^L^M.

If anyone has any insight into this, I'd appreciate it.
Thank You.  



More information about the Comp.unix.questions mailing list