Building cross reference -- how?

William Park opengeometry-FFYn/CNdgSA at public.gmane.org
Mon Oct 14 06:44:59 UTC 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
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list