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 >
How about: sed -i "s:/\* \(#define.*INTERPRETER\) \*/:\1:" \ include/freetype/config/ftoption.h or even: sed -i "s/^.* \(#define.*INTERPRETER\).*$/\1/" \ include/freetype/config/ftoption.h or minimally: sed -i "s/.*\(#def.*ETER\).*/\1/" \ include/freetype/config/ftoption.h or try the -r option: sed -ir "s/.*(#def.*ETER).*/\1/" \ include/freetype/config/ftoption.h -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page