From owner-freebsd-questions Wed Mar 25 05:38:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA07853 for freebsd-questions-outgoing; Wed, 25 Mar 1998 05:38:11 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from enigami.com (enigami.com [208.140.182.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA07844 for ; Wed, 25 Mar 1998 05:38:05 -0800 (PST) (envelope-from ckempf@enigami.com) Received: from [208.140.182.45] (symphony.enigami.com [208.140.182.45]) by enigami.com (8.8.7/8.8.7) with ESMTP id IAA10661; Wed, 25 Mar 1998 08:35:32 -0500 (EST) X-Sender: ckempfm@enigami.com Message-Id: 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 +0000 <199803242158.LAA12307@rocksalt.mui.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Wed, 25 Mar 1998 08:33:23 -0500 To: nik@iii.co.uk, ken@mui.net From: Cory Kempf Subject: Re: btw - ^M Cc: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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: Cory Kempf Macintosh / Unix Consulting & Software Development ckempf@enigami.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message