in reply to Checking for new files

Sort the two lists and compare with comm:

$ cat a one two three four five six seven $ cat b two four five six seven $ sort a > a.sorted $ sort b > b.sorted $ comm -23 a.sorted b.sorted one three $

Update 2009 sep 2.

See Re^2: Joining two files on common field for a list of other nodes where unix textutils is suggested to merge files.

Replies are listed 'Best First'.
Re^2: Checking for new files
by kelan (Deacon) on Jan 28, 2005 at 14:56 UTC

    Use zsh! :)

    $ comm -23 <(sort a) <(sort b)