From owner-freebsd-questions Thu Jul 23 20:11:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA26155 for freebsd-questions-outgoing; Thu, 23 Jul 1998 20:11:28 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ix.netcom.com (sil-wa6-05.ix.netcom.com [206.214.137.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA26146 for ; Thu, 23 Jul 1998 20:11:23 -0700 (PDT) (envelope-from tomdean@ix.netcom.com) Received: (from tomdean@localhost) by ix.netcom.com (8.8.8/8.8.8) id UAA03091; Thu, 23 Jul 1998 20:10:45 -0700 (PDT) (envelope-from tomdean) Date: Thu, 23 Jul 1998 20:10:45 -0700 (PDT) Message-Id: <199807240310.UAA03091@ix.netcom.com> From: Thomas Dean To: joe.shevland@horizonti.com CC: freebsd-questions@FreeBSD.ORG In-reply-to: <35B7DDB0.A34DC272@horizonti.com> (message from Joe on Fri, 24 Jul 1998 11:04:49 +1000) Subject: Re: Translation Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG What you want to do is translate the DOS line-ending, 0x0d 0x0a, into a UNIX line-ending, 0x0a. In terms of 'tr' characters, this is translating '\r\n' into '\n'. cat | tr -d '\r' Try # 'hd | tr -d '\r' | hd' to see the difference. Look at 'man ascii' and 'man tr' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message