home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!munnari.oz.au!metro!bnd2.bnd.oz.au!johnw
- From: johnw@bnd2.bnd.oz.au (John Warburton)
- Subject: Re: programming challenge
- Message-ID: <1992Dec17.030134.29161@bnd2.bnd.oz.au>
- Organization: B&D Doors, Sydney, NSW, Australia
- References: <1992Dec16.043128.7616@bby.com.au>
- Date: Thu, 17 Dec 1992 03:01:34 GMT
- Lines: 24
-
- From article <1992Dec16.043128.7616@bby.com.au>, by gnb@baby.bby.com.au (Gregory N. Bond):
- > If you are editing man pages, they probably contain things like
- > E^HE to make things bold, and _^HE (or E^H_, depending on your
- > nroff) to underline them. Rather than stripping the ^Hs then
- > compressing the repeats, what about doing both at once:
- >
- > perl -pi.bak -e 's/(.)\cH$1/$1/g;s/_\cH(.)/$1/g;' {files}
- >
- I did this for a while & was reading the man page for col.
- now the above is col -b :-( had I been wasting some time typing that out!
-
- >
- > Greg.
- John
-
- > --
- > Gregory Bond <gnb@bby.com.au> Burdett Buckeridge & Young Ltd Melbourne Australia
- > If I hear "Jingle Bell Rock" one more time, I will _scream_!
- would that be the Abba or the Chipmunks version?
- --
- John Warburton Internet: johnw@bnd2.bnd.oz.au
- Systems Administrator Phone: +61 2 771 5566
- B & D Australia Fax: +61 2 771 6385
- Living on ice-cream and chocolate kisses...
-