Here is the command to search records in the first file inside of the second file :
grep -f firstFile.csv SecondFile.csv > FoundRecords.csv
But if there are more thant 100k records on each file, you must split them into 100K line to prevent the command get killed or become not responding. Here is the command to split the file :