From owner-cvs-all Sun Aug 22 21:34:57 1999 Delivered-To: cvs-all@freebsd.org Received: from mail.rdc2.on.home.com (ha1.rdc2.on.home.com [24.9.0.15]) by hub.freebsd.org (Postfix) with ESMTP id AC87E155AD for ; Sun, 22 Aug 1999 21:34:45 -0700 (PDT) (envelope-from street@iname.com) Received: from mired.eh.local ([24.64.136.188]) by mail.rdc2.on.home.com (InterMail v4.01.01.07 201-229-111-110) with ESMTP id <19990823043354.YUHR20473.mail.rdc2.on.home.com@mired.eh.local>; Sun, 22 Aug 1999 21:33:54 -0700 Received: (from kws@localhost) by mired.eh.local (8.9.3/8.9.3) id AAA01826; Mon, 23 Aug 1999 00:33:54 -0400 (EDT) (envelope-from kws) To: "Rodney W. Grimes" Cc: cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/etc/mtree README References: <199908230138.SAA33709@gndrsh.dnsmgr.net> From: Kevin Street Date: 23 Aug 1999 00:33:54 -0400 In-Reply-To: "Rodney W. Grimes"'s message of "Sun, 22 Aug 1999 18:38:02 -0700 (PDT)" Message-ID: <87r9kv6rpp.fsf@mired.eh.local> Lines: 19 X-Mailer: Gnus v5.6.45/XEmacs 21.1 - "20 Minutes to Nikko" Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk "Rodney W. Grimes" writes: > e) Add missing and remove extra entries (producing this last one > is being a bit of a pain, anyone have a quick command to find > directories that have no entries in them?). This finds (and deletes) empty dirs. I'd recommend you change the rmdir in the middle to something more suitable for your purposes... find -d . -type d | perl -lne \ 'opendir(D,$_);@f=readdir(D);rmdir if $#f == 1;closedir(D);' I don't remember who I stole this from. I think it was part of the predecessor of mergemaster. -- Kevin Street street@iname.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message