Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Apr 2003 17:35:27 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Christopher Rosado <chris@topher.gintera.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: dos2unix???
Message-ID:  <20030416173147.Y23561@wonkity.com>
In-Reply-To: <200304152334.26957.chris@topher.gintera.net>
References:  <5.2.0.9.2.20030415085340.01bae4a0@mail.servplex.com> <200304152334.26957.chris@topher.gintera.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 Apr 2003, Christopher Rosado wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Tuesday 15 April 2003 04:46 pm, Warren Block wrote:
>
> > Um... ^M would mean an M at the start of a line.  This should be
> >
> >            s/\r//g;
>
> Try pressing CTRL-V then CTRL-M in vi ... the result is ^M as a control
> character.  I use s/^M//g quite frequently.

I try to avoid unprintable characters in programs because, well, they're
unprintable.  \r is less typing, doesn't screw up when you print it
to paper, and won't be confused with a beginning-of-line anchor and a
capital M.

-Warren Block * Rapid City, South Dakota USA



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