🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #15361

Re: A script to find and remove empty directories

#15361
From: Jeff Garzik
Date: Wed, 26 Feb 1997 00:00
29 lines
1775 bytes
Michael Hucka wrote:
> >>>>> On 25 Feb 1997, Jeff Garzik <jeff.garzik@spinne.com> wrote:
>   JG> Here is a quick and dirty Perl script that removes empty directories
>   JG> recursively.  There may be some way to do this with shell utils, but it
>   JG> was faster for me to simply write this.  :) It should be easy to modify
>   JG> the output to show newsgroups removed, for logging purposes or
>   JG> whatever.

> I don't mean this in any rude way, but it turns out there are probably a
> half-dozen other programs available to do this task.


Actually the programs in the areas you cite clean up, in one shape or
another, *files*.  Most are meant to be piped to fastrm.  There was one
script, dropgroup, on Stephen Jones' script page that came close to what
I was looking for, but even then there was not an rmdir to be found.

	Jeff



-- 
"The New York Times is read by the people who run the country.  The
Washington Post is read by the people who think they run the country.
The National Enquirer is read by the people who think Elvis is alive
and running the country ..."  -- Robert J Woodhead

Technical Details
Message-ID: <3313F711.79B8AA0A@spinne.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
References: <33132F95.54538512@spinne.com> <82ybccj8wr.fsf@parrot.eecs.umich.edu>

Show Full Headers
Complete Article Headers
Message-ID: <3313F711.79B8AA0A@spinne.com>
Subject: Re: A script to find and remove empty directories
Date: Wed, 26 Feb 1997 00:00:00 +0000
From: Jeff Garzik <jeff.garzik@spinne.com>
References: <33132F95.54538512@spinne.com> <82ybccj8wr.fsf@parrot.eecs.umich.edu>
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: 221520105
To: Michael Hucka <hucka@eecs.umich.edu>
Organization: Spinne http://spinne.com
Newsgroups: news.software.nntp