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

William Park opengeometry-FFYn/CNdgSA at public.gmane.org
Mon Oct 14 07:14:48 UTC 2013


I found a solution!  man comm
Using previous example,
    
    file1, one two three red
    file2, four five
    file3, red blue yellow
    file4, blue one

- for each "word", create a file (with the same name), and its content
  will be sorted list of filenames where "word" came from.  So,  
	one -- file1 file4
	red -- file1 file3
	...

- to find cross reference of "one" and "red", do
	comm -1 -2 red one
-- 
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