Article View: news.software.nntp
Article #6325Re: INN Help! How to purge 'Control' newsgroup.
From: Daryl Gaumer
Date: Thu, 04 Apr 1996 00:00
Date: Thu, 04 Apr 1996 00:00
20 lines
1199 bytes
1199 bytes
Vern Soehner (vsoehner@nectech.com) wrote:
: Hi. Help Please.
: May I do a 'find . -type f -mtime +n -exec rm {} \; &' command at
: the /news/spool/news/control directory and if so, what do I have
: to be careful about? For example... Should I check something to
: be sure it is okay?
I would use the following:
find . -type f -mtime +n -print | xargs rm
The 'xargs' command will combine many file names (from the output
of 'find') and fork/exec 'rm' with the list of files. This is
a lot faster because the '-exec rm {}\;' causes 'find' to
fork/exec 'rm' for every file.
-- darylg
Technical Details
Message-ID:
<4jvlql$q2o@hpax.cup.hp.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-mailReferences:
<4ju5uo$pkc_002@cosmos.nectech.com>Show Full Headers
Complete Article Headers
Message-ID: <4jvlql$q2o@hpax.cup.hp.com> Subject: Re: INN Help! How to purge 'Control' newsgroup. Date: Thu, 04 Apr 1996 00:00:00 +0000 From: darylg@cup.hp.com (Daryl Gaumer) References: <4ju5uo$pkc_002@cosmos.nectech.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: 145841453 Distribution: inet Organization: Hewlett Packard Cupertino Site Newsgroups: news.software.nntp