dos2unix???

Warren Block wblock at wonkity.com
Wed Apr 16 16:35:36 PDT 2003


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


More information about the freebsd-questions mailing list