Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 May 2011 22:34:28 -0400
From:      Eitan Adler <lists@eitanadler.com>
To:        Rolf Nielsen <listreader@lazlarlyricon.com>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Comparing two lists
Message-ID:  <BANLkTinGtUcE79o=9iMqY68-BXMO8txTXw@mail.gmail.com>
In-Reply-To: <4DC48DB6.8030907@lazlarlyricon.com>
References:  <4DC48DB6.8030907@lazlarlyricon.com>

next in thread | previous in thread | raw e-mail | index | archive | help
....
> They have some lines in common
> and some lines are unique to one of the files.

Use comm whenever you are dealing with set operations (in your case
the intersection operation):
http://www.catonmat.net/blog/set-operations-in-unix-shell


-- 
Eitan Adler



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTinGtUcE79o=9iMqY68-BXMO8txTXw>