finding overlapping names in different txt files

view full story

http://www.unix.com – Dear Gurus, I have 57 tab-delimited different text files, each one containing entries in 3 columns. The first column in each file contains names of objects. Some names are present in more than one file. I would like to find those names and store them in a separate text file, preferably with a original file name in front of it. For ex. file1 veb 34 33 reg 45 44 vuh 67 63 file2 veb 45 23 yuj 56 78 qsa 45 78 I would like to have a output veb file1,file2 So, the output shows the common names in these two files and also gives the file names of origin. Could somebody sugg (HowTos)