Article View: news.software.nntp
Article #14402Re: Very old articles.
From: Daryl E. Kottek
Date: Fri, 24 Jan 1997 00:00
Date: Fri, 24 Jan 1997 00:00
38 lines
1806 bytes
1806 bytes
In a previous article, jbrown@interalpha.co.uk (Jason Brown) says:
.Hi!
..
.A lot of my usenet groups have got articles at least 3 months old dating
.back to last year. How do I get rid of them? I can only think of two
.ways, either to manually delete the articles off the hard disk(s) which I
.don`t fancy doing OR to rebuild the history database which according to
.the FAQ`s isn`t recommended as could take quite a few hours.
..
.Any ideas?
..
.Thanks in advance,
..
.Jason.
Well, don't know if this is the recommended approach or not, but I think
it will work.
ASSUMPTION: You don't want ANY articles that are older than 3 months old.
touch 1024000096 /tmp/old
This creates a file called /tmp/old with a date of 10/24/96 00:00
cd /var/spool/news
find . -type f -name "[0-9]*" ! -newer /tmp/old -print -exec rm {} \;
This finds all files that are plain files in which the name of the
file is composed of only digits and is older than the date of the
file called /tmp/old (you set that up to be 10/24/96). With the
files that match this criteria, it will print their names, and
also remove them.
-Daryl
--
Technical Details
Message-ID:
<5casfi$9gn@ednet2.orednet.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<Pine.LNX.3.93.970123165601.27532A-100000@jason.interalpha.net>Show Full Headers
Complete Article Headers
Message-ID: <5casfi$9gn@ednet2.orednet.org> Subject: Re: Very old articles. Date: Fri, 24 Jan 1997 00:00:00 +0000 From: dkotte2@orednet.org (Daryl E. Kottek) References: <Pine.LNX.3.93.970123165601.27532A-100000@jason.interalpha.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 212101996 Distribution: inet Organization: Oregon ED-NET, Oregon (USA) Reply-to: dkotte2@orednet.org (Daryl E. Kottek) Newsgroups: news.software.nntp