[kwlug-disc] [TLUG]: Building cross reference -- how?

William Park opengeometry at yahoo.ca
Mon Oct 14 02:44:59 EDT 2013


On Sun, Oct 13, 2013 at 01:03:46PM -0400, D. Hugh Redelmeier wrote:
> What's wrong with the multiple fgrep solution that you came up with?
> The answer might help us understand your problem better.

Nothing wrong with grep solution, really.  It's better than awk
solution,
    awk '$0 ~ re1 && $0 ~ re2 {print}'
because awk is doing 2 full passes whereas grep is doing somewhere
between 1 and 2 passes.

But, I think this road is "dead end".
-- 
William




More information about the kwlug-disc mailing list