Date: Tue, 16 Dec 2003 13:25:52 -0800 From: Chris Pressey <cpressey@catseye.mine.nu> To: mrb@bmyster.com Cc: freebsd-questions@freebsd.org Subject: Re: comparison of files Message-ID: <20031216132552.75b0c4a9.cpressey@catseye.mine.nu> In-Reply-To: <1191.66.63.97.2.1071610282.squirrel@new.host.name> References: <1191.66.63.97.2.1071610282.squirrel@new.host.name>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 16 Dec 2003 16:31:22 -0500 (EST) "Brent Bailey" <mrb@bmyster.com> wrote: > hello, > > I have been trying to write a shell script that will compare 2 files > and generate a 3rd. > > i have a list of abusive IP's generated by our router. I want to > compare it against a list of known abuse IPs ..and have it create a > file of repeat offenders. > > ive tired to use "comm" to compare file1 against file2 doing something > like > > comm -12i file1 file2 >file3 > > however it doesnt seem to work....any suggestions ? Are file1 and file2 sorted? -Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031216132552.75b0c4a9.cpressey>