Bruce Dubbs wrote these words on 06/13/05 21:32 CST:

> Checking BLFS, I see a few more, but none using the baskreference notation.

Thanks for the agreement on the learning experience, Bruce. However,
it makes for an ugly sed. I don't like the fact that we have to
escape the * (asterisk) in the sed. It sort of takes away some of
the directness. However, from a learning experience, there's a couple
of things to take from this sed. One, you must escape a literal *
character, and the backreference.

Here's the simplest sed my feeble mind can come up with using the
backreference method:

sed -i \
    "s:/\* \(#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER\) \*/:\1:" \
    include/freetype/config/ftoption.h

This isn't probably the greatest example of a backreference, but
it would be the *only* example of one in LFS or BLFS. It is also
right at the cusp of running off the rendered PDF as it is 71 chars
long. It does, however, fit on the page.

Please, someone, help me out here on making it shorter, and still
using the backreference method. (moving the 2nd line towards the
margin doesn't count :-) )

-- 
Randy

rmlscsi: [GNU ld version 2.15.94.0.2 20041220] [gcc (GCC) 3.4.3]
[GNU C Library stable release version 2.3.4] [Linux 2.6.10 i686]
22:12:00 up 72 days, 21:45, 2 users, load average: 0.02, 0.03, 0.00
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to