Date: Sun, 08 May 2005 12:53:06 -0700 From: Matt Navarre <mnavarre@cox.net> To: questions@freebsd.org Subject: Re: [freebsd] On removing ^M Message-ID: <427E6E22.3030400@cox.net> In-Reply-To: <20050508214047.109a3584.regisr@pobox.com> References: <20050508192019.127ED1CE303@ws1-6.us4.outblaze.com> <20050508214047.109a3584.regisr@pobox.com>
next in thread | previous in thread | raw e-mail | index | archive | help
regisr wrote: > On Sun, 08 May 2005 14:20:19 -0500 > "Fafa Hafiz Krantz" <fteg@london.com> wrote: > > >>I am wondering what is needed (what tool or what code) to >>do a mass (recursive) removal of ^Ms? > > > try: > tr -d "\r" < input-file > output-file > > Or: perl -pi -e 's/\015//' *.c which will edit all .c files in place, or: perl -pi.bak -e's/\015//' *.c Which will also edit the files in place but leave the originial files with a .bak extension. Just a little easier to do on a whole directory of files than using tr. OK, Matt
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?427E6E22.3030400>