Thanks, I completely forgot about the comm command...Since I am going to use the same 2nd (larger) file run after run , I will sort the file and save it sorted, so I won't have to do that over and over. Sorting such a large file may take close to an hour I would think... On my machine, sorthing a file with a few million strings like that takes at least a few minutes.