Date: Mon, 15 Mar 1999 15:28:50 -0500 (EST) From: Bill Fumerola <billf@chc-chimes.com> To: Byron Brummer <byron@omix.com> Cc: "Matthew D. Fuller" <fullermd@futuresouth.com>, zen@buddhist.com, freebsd-doc@FreeBSD.ORG Subject: Re: Converting text files Message-ID: <Pine.HPP.3.96.990315152522.8642C-100000@hp9000.chc-chimes.com> In-Reply-To: <199903151039.CAA01162@thrush.omix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.HPP.3.96.990315152522.8642C-100000>