Date: Wed, 25 Mar 1998 11:22:05 +0000 From: nik@iii.co.uk To: ken@mui.net Cc: freebsd-questions@FreeBSD.ORG Subject: Re: btw - ^M Message-ID: <19980325112205.51229@iii.co.uk> In-Reply-To: <199803242158.LAA12307@rocksalt.mui.net>; from ken@mui.net on Tue, Mar 24, 1998 at 11:57:17AM %2B0000 References: <199803242158.LAA12307@rocksalt.mui.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 24, 1998 at 11:57:17AM +0000, ken@mui.net wrote: > um ... btw - is there an easy way to strip away the carriage returns > (^M) from text files on the dos side? Doing it manually is okay for > short stuff, but long files ...painful... tr(1) (which means "translate"). In a nutshell, if you've got file.dos, and you want to convert it to file.unix, do % tr "\r" "\n" < file.dos > file.unix which runs tr, translating the "\r" characters (the ^M) to Unix line ending characters ("\n"). N -- Work: nik@iii.co.uk | FreeBSD + Perl + Apache Rest: nik@nothing-going-on.demon.co.uk | Remind me again why we need Play: nik@freebsd.org | Microsoft? 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?19980325112205.51229>