Subject: Re: misc/14825: /etc/{daily,weekly,montly} should be unified
To: None <netbsd-bugs@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-bugs
Date: 12/05/2001 14:22:51
On Wed, 5 Dec 2001, John Hawkinson wrote:

> I think they really need to be combined, actually, because
> some of them run finds on the whole disk, and those should be combined
> into one find, not multiple ones.

John, do you have any specific ideas for this?

On Wed, 5 Dec 2001, Andrew Brown wrote:

> i like that idea also, except that such a solution would probably
> require more tools (eg, grep and sort) to support a -0 flag.  some of
> the finds are searching for wildly different things as well.  otoh, if
> find could be taught, like sed, to be able to spew to different (and
> perhaps multiple) output files, then perhaps grep and sort could be
> left out of it.

Or maybe just have find output every file, then use awk to sort it out.

Recently, I saw postings from A. Crooks and others about using awk to
parse ls(1) output to generate octal modes. awk could check the find
output for:

- core files
- set uid/gid devices

... But now looking at the daily, weekly, monthly, and security scripts
(not current), I only see two uses of find. So maybe it is not a big deal
anyways.

   Jeremy C. Reed
   http://www.reedmedia.net/