mercredi 29 avril 2015

Compare two text files in Perl

I have several strings in two .txt file. Both of them contain some similar strings but are not arranged on the same line number.

For example, file1.txt Carmen Edison Molly Jason Damon Gerard

file2.txt Edison Jason

I want to save the similar strings that found in both text files (in this case: Edison Jason) to an array.

Aucun commentaire:

Enregistrer un commentaire