Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jul 1998 20:10:45 -0700 (PDT)
From:      Thomas Dean <tomdean@ix.netcom.com>
To:        joe.shevland@horizonti.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Translation
Message-ID:  <199807240310.UAA03091@ix.netcom.com>
In-Reply-To: <35B7DDB0.A34DC272@horizonti.com> (message from Joe on Fri, 24 Jul 1998 11:04:49 %2B1000)

next in thread | previous in thread | raw e-mail | index | archive | help
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 <filename> | tr -d '\r'

Try

# 'hd <filename'
# 'cat <filename> | 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807240310.UAA03091>