linux guru's: question comparing files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Brujah
    Beer Money Baron
    • Jan 2001
    • 22157

    #1

    linux guru's: question comparing files

    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
  • Rorschach
    So Fucking Banned
    • Aug 2002
    • 5579

    #2
    man diff

    Comment

    Working...