Date: Wed, 25 Mar 1998 08:33:23 -0500 From: Cory Kempf <ckempf@enigami.com> To: nik@iii.co.uk, ken@mui.net Cc: freebsd-questions@FreeBSD.ORG Subject: Re: btw - ^M Message-ID: <v04003a07b13eb7c5c9e4@[208.140.182.45]> In-Reply-To: <19980325112205.51229@iii.co.uk> References: <199803242158.LAA12307@rocksalt.mui.net>; from ken@mui.net on Tue, Mar 24, 1998 at 11:57:17AM %2B0000 <199803242158.LAA12307@rocksalt.mui.net>
next in thread | previous in thread | raw e-mail | index | archive | help
At 06:22 -0500 98.03.25, nik@iii.co.uk wrote:
>In a nutshell, if you've got file.dos, and you want to convert it to
>file.unix, do
>
> % tr "\r" "\n" < file.dos > file.unix
>
>which runs tr, translating the "\r" characters (the ^M) to Unix line ending
>characters ("\n").
This will work for Macintosh files, but Microsoft, for reasons that escape me,
seems to require both a \r and a \n. Converting \r to \n will give you a
double
spaced file (e.g. like what I just typed).
+C
--
Thinking of purchasing RAM from the Chip Merchant? Please read this first:
<http://www.enigami.com/~ckempf/chipmerchant.html>
Cory Kempf Macintosh / Unix Consulting & Software Development
ckempf@enigami.com <http://www.enigami.com/~ckempf/>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v04003a07b13eb7c5c9e4>
