From owner-freebsd-isp Wed Nov 27 14:37:28 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA17846 for isp-outgoing; Wed, 27 Nov 1996 14:37:28 -0800 (PST) Received: from brasil.moneng.mei.com (brasil.moneng.mei.com [151.186.109.160]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA17837 for ; Wed, 27 Nov 1996 14:37:24 -0800 (PST) Received: (from jgreco@localhost) by brasil.moneng.mei.com (8.7.Beta.1/8.7.Beta.1) id QAA19901; Wed, 27 Nov 1996 16:36:10 -0600 From: Joe Greco Message-Id: <199611272236.QAA19901@brasil.moneng.mei.com> Subject: Re: Editing active file To: admin@linkeasy.net (Mike Parks) Date: Wed, 27 Nov 1996 16:36:09 -0600 (CST) Cc: freebsd-isp@freebsd.org In-Reply-To: <199611272106.NAA21365@orka.linkeasy.net> from "Mike Parks" at Nov 27, 96 01:06:24 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > When I start INN I recieve error message saying duplicate comp.?.? when I > delete the line from my active file and restart innd I get the same message > referring to the next line of the active file. > > Is there a command to search and delete all duplicate lines in this file so > I don't have to go through them one by one. Try this. % awk '{print $1}' /usr/local/news/active | sort | uniq -c alt.binaries.startrek alt.binaries.startrek.adult alt.binaties.startrek.adult alt.sex.fetish.startrek % This will not actually delete them but it will tell you which ones are duplicated. That may be helpful. ... JG