I have two files ........
root@server1 [~]# cat a.txt
john
tim
dan
peter
maria
root@server1 [~]# cat b.txt
john
tim
angel
dan
william
monica
peter
juliet
bruce
maria
Now I want to compare the two files and list out only those entries that is not present in both files say to a file named c.txt
The result should be like.
root@server1 [~]# cat c.txt
angel
william
monica
juliet
bruce
Please advice with which command/script can this be achieved.