🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #49216

Re: INN timehash and inodes

#49216
From: Ralf Döblitz
Date: Wed, 29 Nov 2000 00:00
23 lines
1816 bytes
bill davidsen <davidsen@tmr.com> wrote:
[...]
>nuken.sh
>  cd $MySpool
>  find . -type d -atime +2 -depth | xargs rmdir
>
>  Note that rmdir only works on empty directories, you probably want to
>redirect stderr to the bitbucket.
>
>  There are much better ways to do this in terms of avoiding non-empty
>directories, perl could search and see if there are entries in the
>directory, etc, but the saving might be trivial.

If you specify "-empty" find will only report empty directories.
Unfortunately this does not work well with "-depth" on my system.

Ralf
-- 
Ralf D�blitz   *   Schapenstr. 6   *   38104 Braunschweig   *   Germany
Phone: +49-531-2361223    Fax: +49-531-2361224   mailto:doeblitz@gmx.de
Homepage: http://www.escape.de/users/selene/

Technical Details
Message-ID: <903dm9$41m$1@selene.doeblitz.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
References: <8vg5rg$7vc$1@ascomax2.hasler.ascom.ch> <901cue$31i6$1@newssvr06-en0.news.prodigy.com>

Show Full Headers
Complete Article Headers
Message-ID: <903dm9$41m$1@selene.doeblitz.net>
Subject: Re: INN timehash and inodes
Date: Wed, 29 Nov 2000 00:00:00 +0000
From: Ralf Döblitz <doeblitz@gmx.de>
References: <8vg5rg$7vc$1@ascomax2.hasler.ascom.ch> <901cue$31i6$1@newssvr06-en0.news.prodigy.com>
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: 699204899
Distribution: world
Content-Transfer-Encoding: 8bit
Sender: Ralf Doeblitz <doeblitz@selene.doeblitz.net>
Mail-Copies-To: never
Content-Type: text/plain; charset=iso-8859-1
X-Trace: selene.doeblitz.net 975518217 4150 194.120.234.83 (29 Nov 2000 17:16:57 GMT)
Organization: private site in Braunschweig, Germany
User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (Linux/2.2.17 (i686))
Mime-Version: 1.0
NNTP-Posting-Date: 29 Nov 2000 18:16:57 +0100
Newsgroups: news.software.nntp