I am on bash I have two files added.txt and unmatched.txt , now imagine that all lines from added.txt are present in unmatched.txt . I want to remove lines from unmatched.txt which are present in added.txt . for example
1) added.txt
apple
ball
2) unmatched.txt
cat
dog
apple
rar
ball
3) required output.txt
cat
dog
rar