whats a quick way to compare two files or lists and display results where all lines that are in both files ?
list1
apple
banana
oranage
list2
apple
cherry
grape
output:
apple
list1
apple
banana
oranage
list2
apple
cherry
grape
output:
apple

Comment