From 2 files create 3rd file with uncommon data

Hi All,

I have two files. File1 and File2.

Want to create another file with all the records of File1 those are not present in File2.

Please guide.

Thanks in advanced.
Anupam

Have you tried comm ?

1 Like
comm -23 file1.txt file2.txt

did the trick. Thank you.

1 Like

I'm glad it worked for you. Thank you for sharing your solution.