blt123
1
Hello,
I want to compare two files. All records in file 2 that are not in file 1 should be output to file 3.
For example:
file 1
123
1234
123456
file 2
123
2345
23456
file 3 should have
2345
23456
I have looked at diff, bdiff, cmp, comm, diff3 without any luck!
Thanks for your help
Barbara
comm -23 file2 file1 > file3 should get you what you are looking for.
blt123
3
Thanks for the info, it works!
When I read "man" about comm, it had mentioned the output as being "text columns". This confused me, because I wanted the different records.
Thanks again,
Barbara