<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I feel dumb asking this, but I have wasted a lot of
time already without a solution, so maybe it is not as easy as I thought it
should be, either that or my brain is just not with it today (if so, not the
first time).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Under SCO Unix, I am using the "export word"
command to produce a flat ASCII file. Export word defaults to a record (or
line) delimiter of \n (newline). I want to change this to \r\n (carriage
return/newline) for compatibility with some windows software that the data is
passed to. Well, I have not been able to find any way to do this with
"export word" or even with "export ascii" where I thought I could use r=\r\n,
but this gives me a syntax error.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I even tried to issue a SED substitution command
after generating the output file:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>sed s/\n/\r\n/ filename >target
filename</FONT></DIV>
<DIV><FONT face=Arial size=2>sed s/"\n"/"\r\n"/ filename >target
filename</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I also tried:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>tr "\n" "\r\n" - this changed the \n to \r
but not to \r\n.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>None of this worked, I really don't know much about
sed or tr and regular expressions, but thought this had a
shot.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>So is there any way to export an ASCII file
and generate a record delimiter of carriage return/linefeed? Or convert it after
generating it with standard Unix commands?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Del</FONT></DIV></BODY></HTML>