Comparing 2 lists

Discussion in 'Mac Apps and Mac App Store' started by billyc1, Mar 26, 2015.

  1. billyc1 macrumors newbie

    Joined:
    Mar 26, 2015
    #1
    I have two lists made up of 1/2 word entrys, one with about 600 entrys the other with about 400 and I want to find a quick way of finding all the items only on one list. Is there any application or terminal commands for this?
     
  2. dZp macrumors 6502a

    dZp

    Joined:
    Mar 29, 2006
    #2
    Code:
    awk 'FNR==NR{a[$0]++;next}!a[$0]' file1 file2
     

Share This Page