Subject: Re: regular irrexpressions
To: James K. Lowden <jklowden@schemamania.org>
From: Dave Huang <khym@azeotrope.org>
List: netbsd-help
Date: 10/19/2002 00:09:48
On Sat, 19 Oct 2002, James K. Lowden wrote:
> But I though, hey, this is why sed(1) was invented, right?
>
> $ man indent |sed -e's/.\010//g'
> $ man indent |sed 's/.[[:cntrl:]]//'
> $ man indent |sed 's/.[\010]//'
> $ man indent |sed 's/(.\010)//'
> $ man indent |sed 's/(.[[:cntrl:]])//'
>
> Bwahaha!  sed laughs at my silly inexpressions.

You need to use sed -E to turn on extended regexes... e.g.
 man indent | sed -E 's/.[[:cntrl:]]//g'

> So.  Did one of you guys log into my box and turn my regex library into a
> gatepost, or am I going about this the wrong way?  What ever would *you*
> do?

But as for what I'd do,
 man indent | col -b
-- 
Name: Dave Huang         |  Mammal, mammal / their names are called /
INet: khym@azeotrope.org |  they raise a paw / the bat, the cat /
FurryMUCK: Dahan         |  dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 26 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++