Randy McMurchy wrote: > Bruce Dubbs wrote these words on 06/13/05 19:36 CST: > > >>I think we can do this one with a sed. > > > All of the provided suggestions are good. However, I vote we use > a sed with the backreference method. As best as I can think, there > is not one place in LFS or BLFS where we use the \1 (backreference) > method in sed.
That was my thought too. A quick check of LFS shows by my count 8 seds (4 more in the Makefile). The only unusual construct is using the ampersand like: s/-is/&R/g. Checking BLFS, I see a few more, but none using the baskreference notation. > After all, we *do* claim to be a teaching and learning tool. This > would be a perfect place to introduce a rarely used part of sed. I couldn't agree more. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page