Date: Wed, 26 Feb 2003 12:09:19 -0500 From: "Kliment Andreev" <klimenta@runbox.com> To: <freebsd-questions@FreeBSD.ORG> Subject: Re: cat Message-ID: <001601c2ddb9$ce9e14f0$ca0110ac@vinyl.tkvbp.com> References: <20030226175613.5e61f45e.tijl@ulyssis.org> <200302261901.15799.will@unfoldings.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> > I want to remove CRs from text files so what I did is this: > > > > cat filename | tr -d '\r' > filename > > It's easier with 'tr' but you can also use vi. # vi text.txt :1,$s/^M//g where ^M means that you need to hit Ctrl-V. 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?001601c2ddb9$ce9e14f0$ca0110ac>