Bruce Dubbs wrote:
Randy McMurchy wrote:


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


or minimally:

sed -i "s/.*\(#def.*ETER\).*/\1/" \
     include/freetype/config/ftoption.h

Um, did you guys miss my post earlier in this thread that had a sed option much like this one? I thought all the talk about using the backreference was in favor of the sed I suggested. :P

Remember this?

" Not sure if it's better, but it's shorter:

sed -i '[EMAIL PROTECTED]/\* \(.*BYTE.*\) \*/@\1@' \
    include/freetype/config/ftoption.h "

--
JH
--
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