BASH comm command, but for multiple columns
问题 I am looking for something similar to the bash command comm, that I can use to select entries both unique to my 2 files and common to them. Comm worked great when I had just one column per file, eg. comm -13 FILE1.txt FILE2.txt > Entries_only_in_file1.txt But now I have multiple columns of info I wish to keep. I want to select column 2 as the one to filter rows for unique and common entries between my two files. If the entry in column two appears in both files I also want to record the info