Thanks to the python hint, I did it:
file1 = open("FILE1.TXT", "r")
a={}
for line1 in file1:
str = line1[:59] + line1[68:-1]
a[str] = 1
file1.close()
file2 = open("FILE2.TXT", "r")
out = open("OUTPUT.TXT", "w")
for line2 in file2:
str = line2[:59] + line2[68:-1]
if not a.has_key(str):
out.write(line2[:-1])
out.close()
file2.close()
With two big files (2.8GB) it takes about 20 sec.
Thanks folks!