Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Aug 2006 15:13:11 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Odhiambo Washington <wash@wananchi.com>, freebsd-questions@freebsd.org
Subject:   Re: How to filter the contents of two text files ..
Message-ID:  <20060807201311.GA69605@dan.emsphone.com>
In-Reply-To: <20060807194014.GC4120@ns2.wananchi.com>
References:  <20060807194014.GC4120@ns2.wananchi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Aug 07), Odhiambo Washington said:
> Some little help is needed here ...
> 
> I have two text files, each has just a single column of data
> 
> FileA has 2798 entries, while FileB has 4242 entries; There are
> entries in FileA that are also in FileB...
> 
> I'd like to filter against the two files, so I only get those entries
> in FileB that don't occur only in FileA ....

If your files are sorted, you can use the 'comm' command.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060807201311.GA69605>