From owner-freebsd-questions@FreeBSD.ORG Tue Dec 16 13:19:50 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0AAA16A4CE for ; Tue, 16 Dec 2003 13:19:50 -0800 (PST) Received: from bmyster.com (loqtis.bmyster.com [65.162.190.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAEAF43D48 for ; Tue, 16 Dec 2003 13:19:48 -0800 (PST) (envelope-from mrb@bmyster.com) Received: from loqtis.bmyster.com (localhost.bmyster.com [127.0.0.1]) by bmyster.com (8.12.10/8.12.10) with ESMTP id hBGLVRVL025599 for ; Tue, 16 Dec 2003 16:31:27 -0500 (EST) Received: (from www@localhost) by loqtis.bmyster.com (8.12.10/8.12.10/Submit) id hBGLVMjv025598; Tue, 16 Dec 2003 16:31:22 -0500 (EST) X-Authentication-Warning: loqtis.bmyster.com: www set sender to mrb@bmyster.com using -f Received: from 66.63.97.2 (SquirrelMail authenticated user mrb) by new.host.name with HTTP; Tue, 16 Dec 2003 16:31:22 -0500 (EST) Message-ID: <1191.66.63.97.2.1071610282.squirrel@new.host.name> Date: Tue, 16 Dec 2003 16:31:22 -0500 (EST) From: "Brent Bailey" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal Subject: comparison of files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mrb@bmyster.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2003 21:19:51 -0000 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 ? thank you for all your help in advance -- Brent Bailey CCNA Bmyster LLC Computer Networking and Webhosting Network Engineer, Webmaster, President http://www.bmyster.com mrb@bmyster.com 207-247-8330