in reply to compare two files

If you are only trying to do the job, a simple line of shell code is sufficient: (or 2 lines if the files are not sorted)

# if the files are not sorted, sort them $ sort -k 1,1n file1 > file1.sorted $ sort -k 1,1n file2 | join -v 1 file1.sorted - > file1.uniq

citromatik