I have two sorted files (one string per line). [I'd also like to know how to sorvle this if the lists weren't sorted (as complimented sets)].] I want to output the List1 items not found in the List2 file. grep is too slow. diff gets stuck because list2 has millions of items.
for example: List1.txt contains: a aa <- only in List1.txt not in List2.txt b bb List2.txt contains millions of items: a aaa aaaa b bb ... zzzzzzz Ideally: > perlscr List1.txt List2.txt would output: aa Any help is appreciated. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/