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

William Park opengeometry at yahoo.ca
Mon Oct 14 03:14:48 EDT 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





More information about the kwlug-disc mailing list