file1.txt (50 lines)
file2.txt (500 lines)
TERYUFV00000009526 refids_739_known_8/10_target TERYUFV00000018907 refids_12023_known_21/22_target TERYUFV00000010753 refids_11775_known_1/1_target
TERYUFV00000010753 refids_11775_known_1/1_target TERYUFV00000009526 refids_739_known_8/10_target
Compare file1.txt (has 50 lines) with file2.txt (has 500 lines), get the list from file2.txt which are identical to file1.txt.
I tried both join & fgrep command and it outputs empty file