From owner-freebsd-doc Mon Mar 15 13: 3:44 1999 Delivered-To: freebsd-doc@freebsd.org Received: from hp9000.chc-chimes.com (hp9000.chc-chimes.com [206.67.97.84]) by hub.freebsd.org (Postfix) with ESMTP id 39ADC14FD4 for ; Mon, 15 Mar 1999 13:03:37 -0800 (PST) (envelope-from billf@chc-chimes.com) Received: from localhost by hp9000.chc-chimes.com with SMTP (1.39.111.2/16.2) id AA093799730; Mon, 15 Mar 1999 15:28:51 -0500 Date: Mon, 15 Mar 1999 15:28:50 -0500 (EST) From: Bill Fumerola To: Byron Brummer Cc: "Matthew D. Fuller" , zen@buddhist.com, freebsd-doc@FreeBSD.ORG Subject: Re: Converting text files In-Reply-To: <199903151039.CAA01162@thrush.omix.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 15 Mar 1999, Byron Brummer wrote: > > Hm, maybe it's just me, but I always... > > > > cat infile | tr '\r' ' ' > outfile > > Well, TIMTOWTDI, however your version inserts extra spaces that were > not in the original file. This is why the tr alternate in the > handbook uses "tr -d '\r'". Also, the extra cat is not needed as > the handbook example shows: > > tr -d '\r' < dos-text-file > unix-file To quote Tom Christiansen: "A wise men once said: if you find yourself calling cat with just one argument, then you're probably doing something you shouldn't." - bill fumerola - billf@chc-chimes.com - BF1560 - computer horizons corp - - ph:(800) 252-2421 - bfumerol@computerhorizons.com - billf@FreeBSD.org - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message