Date: Sun, 6 May 2001 20:22:00 +0200 From: Alessandro de Manzano <ale@unixmania.net> To: Christopher Leigh <clcont@lubbockcomputer.com> Cc: freebsd-questions@freebsd.org Subject: Re: how to remove ^M from files with tr? Message-ID: <20010506202200.A738@libero.sunshine.ale> In-Reply-To: <20010506181546.11982.qmail@lubbockcomputer.com>; from clcont@lubbockcomputer.com on Sun, May 06, 2001 at 06:15:46PM -0000 References: <20010506181546.11982.qmail@lubbockcomputer.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 06, 2001 at 06:15:46PM -0000, Christopher Leigh wrote: > i *THINK*, i'm not sure if my memory serves me right, but... > > tr -d \\015\\012 < file.txt > file.txt.unix > > worked in linux, but it won't work in freebsd. Why are you removing linefeeds (\012 , 0x0a, '\n') too ? to remove ^M (carriage returns, 0x0d, '\r') you just need \015 I did a little experiment here and worked. -- bye! Ale ale@unixmania.net 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?20010506202200.A738>