Date: Wed, 27 Nov 1996 16:36:09 -0600 (CST) From: Joe Greco <jgreco@brasil.moneng.mei.com> To: admin@linkeasy.net (Mike Parks) Cc: freebsd-isp@freebsd.org Subject: Re: Editing active file Message-ID: <199611272236.QAA19901@brasil.moneng.mei.com> In-Reply-To: <199611272106.NAA21365@orka.linkeasy.net> from "Mike Parks" at Nov 27, 96 01:06:24 pm
index | next in thread | previous in thread | raw e-mail
> 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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611272236.QAA19901>
