in reply to help with search and match
sort -o file1 file1 sort -o file2 file2 join file1 file2 | awk '$2 == $4' [download]