Re: colours for bullets

Abigail (abigail@fnx.com)
Tue, 15 Apr 1997 12:55:35 -0400 (EDT)


From: abigail@fnx.com (Abigail)
Message-Id: <199704151655.MAA02243@fnx.com>
Subject: Re: colours for bullets
To: schampeo@hesketh.com (Steven Champeon)
Date: Tue, 15 Apr 1997 12:55:35 -0400 (EDT)
Cc: www-html@w3.org, www-style@w3.org
In-Reply-To: <3.0.1.32.19970415114734.00712b8c@mail.imvi.com> from "Steven Champeon" at Apr 15, 97 11:47:34 am

You, Steven Champeon, wrote:
++ 
++ At 08:21 AM 4/15/97 -0700, William M. Perry graced us with:
++ > neko@greenie.muc.de (Simone Demmel) writes:
++ > > ESC:g/rrggbb/s//r1g1b1/g
++ > 
++ >   You forgot:
++ > 
++ > for x in `find . -name "*.html" -o -name "*.shtml"`
++ > do
++ >   vi $x
++ >   # manually do your ESC:g/ blah, or use sed,etc.
++ > done
++ > 
++ >   not exactly ideal for a sight that is several hundred or thousand pages.
++ 
++ Aw, come on, guys. Sed? Please.
++ 
++ perl -pi -e 's|rrggbb|r1g1b1|g' *.html
++ perl -pi -e 's|rrggbb|r1g1b1|g' */*.html
++ perl -pi -e 's|rrggbb|r1g1b1|g' */*/*.html
++ perl -pi -e 's|rrggbb|r1g1b1|g' */*/*/*.html
++ perl -pi -e 's|rrggbb|r1g1b1|g' */*/*/*/*.html
++ perl -pi -e 's|rrggbb|r1g1b1|g' */*/*/*/*/*.html

Surely you mean:
find . -name "*.s?html" | xargs perl -pi -e 's|rrggbb|r1g1b1|gi'

Of course, if your HR's are in 'rrggbb' too, and you don't want
to change them, it gets more complicated, and then you really
wished you had used a style sheet.

++ And that's just from the command line. It would only be a couple more
++ lines to do it from a script. Things were fine before they ported Mosaic
++ to Windows :( Hehehe.

Well, they ported Perl to Windows too :)


Abigail