This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFAA26.80182B50 Content-Type: text/plain; charset="iso-8859-1" Shortly after sending the email, I found the solution (doesn't it always work like that?). Here is the script that I used: sed 's/$/^M/g' unixfile > windowsfile You have to hit the crtl-V sequence before you type the ctrl-M as well as after so it puts in the actual value rather than the literal text. But it works great! Patrick -----Original Message----- From: Victor Odhner [mailto:vodhner@primenet.com] Sent: Wednesday, April 19, 2000 10:37 AM To: 'PLUG' Subject: Re: adding Windows carriage returns On Wed, 19 Apr 2000, Patrick Rhodes wrote: > I have text file in Linux that I need converted to Windows. From what I > understand, I need to add an extra carriage return or line feed at the end > of each line to read it properly in Windows. First, check that your system doesn't have a utod (Unix to DOS) command. That would just be a pipe command. utod < foo > foo.dos Otherwise, here's a little Perl program: while (<>) { s/$/\r/; print; } Type this into a file (call it utod.pl) and then do this: perl utod.pl < foo > foo1 and foo1 will be a carriage-returned copy of foo. Good luck, Vic ------_=_NextPart_001_01BFAA26.80182B50 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Shortly after sending the email, I found the solution = (doesn't it always work like that?). Here is the script that I = used:
sed 's/$/^M/g' unixfile > windowsfile
You have to hit the crtl-V sequence before you type = the ctrl-M as well as after so it puts in the actual value rather than = the literal text. But it works great!
Patrick
-----Original Message-----
From: Victor Odhner [mailto:vodhner@primenet.com]
Sent: Wednesday, April 19, 2000 10:37 AM
To: 'PLUG'
Subject: Re: adding Windows carriage returns
On Wed, 19 Apr 2000, Patrick Rhodes wrote:
> I have text file in Linux that I need converted =
to Windows. From what I
> understand, I need to add an extra carriage =
return or line feed at the end
> of each line to read it properly in =
Windows.
First, check that your system doesn't have a utod =
(Unix to DOS)
command. That would just be a pipe =
command. utod < foo > foo.dos
Otherwise, here's a little Perl program:
while (<>)
{
s/$/\r/;
print;
}
Type this into a file (call it utod.pl) and then do = this:
perl utod.pl < foo > foo1
and foo1 will be a carriage-returned copy of = foo.
Good luck,
Vic
------_=_NextPart_001_01BFAA26.80182B50--