On Sat, 07 May 2011 02:09:26 +0200, Rolf Nielsen <listrea...@lazlarlyricon.com> wrote: > Hello all, > > I have two text files, quite extensive ones. They have some lines in > common and some lines are unique to one of the files. The lines that do > exist in both files are not necessarily in the same location. Now I need > to compare the files and output a list of lines that exist in both > files. Is there a simple way to do this? diff? awk? sed? cmp? Or a > combination of two or more of them?
I would suggest using a combination of sort, uniq and diff. Those are base system tools. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"