On Mon, 12 Dec 2011 15:34:42 -0600 Bruce Dubbs <bruce.du...@gmail.com> wrote:
> Then why is is working for me? Note 'sed -ir' Sorry, I hadn't noticed the -r > $cat sedtest > USEDLIBS module.a > > $ cat sedtest | sed -r -e '/^USEDLIBS/s# ([A-Za-z]*).a# -l\1#g' > USEDLIBS -lmodule Works the same here, but I don't know why. According to: http://en.wikipedia.org/wiki/Regular_expression#POSIX_Extended_Regular_Expressions "support is removed for \n backreferences", but if that's true then why does the backreference work? Andy -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page