🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #19534

Re: Quick way to list how many files in a each subdirectory?

#19534
From: brian moore
Date: Wed, 23 Jul 1997 00:00
18 lines
1356 bytes
In article <823ep57gog.fsf@manic.eecs.umich.edu>,
	Michael Hucka <hucka@eecs.umich.edu> writes:
> Maybe someone can save me the time of inventing this wheel: does anyone have
> a utility that will walk down a directory tree and list how many files are in
> each subdirectory?  I don't need any other info, just the number of files.
> (I want to go through the news spool and hunt for bloated directories.)

How about something like:

find /var/spool/news -type d -size +24 -ls


-- 
Brian Moore                      The opinions expressed above are my own, not
Sysadmin, C/Perl Hacker          necessarily my employers'.

Technical Details
Message-ID: <5r5qsr$qht$1@news.cmc.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: <823ep57gog.fsf@manic.eecs.umich.edu>

Show Full Headers
Complete Article Headers
Message-ID: <5r5qsr$qht$1@news.cmc.net>
Subject: Re: Quick way to list how many files in a each subdirectory?
Date: Wed, 23 Jul 1997 00:00:00 +0000
From: bem@news.cmc.net (brian moore)
References: <823ep57gog.fsf@manic.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: 258426804
Distribution: inet
X-Complaints-To: abuse@cmc.net
X-Trace: news.cmc.net 869691099 27197 (None) 206.102.31.253
Organization: Chambers Multimedia Connection
Reply-To: bem@news.cmc.net
Newsgroups: news.software.nntp