From owner-freebsd-rc@FreeBSD.ORG Sun Aug 8 17:01:52 2004 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 232CD16A4CE for ; Sun, 8 Aug 2004 17:01:52 +0000 (GMT) Received: from web50307.mail.yahoo.com (web50307.mail.yahoo.com [206.190.38.61]) by mx1.FreeBSD.org (Postfix) with SMTP id A3F7743D41 for ; Sun, 8 Aug 2004 17:01:51 +0000 (GMT) (envelope-from cykyc@yahoo.com) Message-ID: <20040808170151.64512.qmail@web50307.mail.yahoo.com> Received: from [209.98.54.121] by web50307.mail.yahoo.com via HTTP; Sun, 08 Aug 2004 10:01:51 PDT Date: Sun, 8 Aug 2004 10:01:51 -0700 (PDT) From: Jon Passki To: freebsd-rc@freebsd.org In-Reply-To: <20040808162649.80859.qmail@web50302.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Feature request to rc.d: managing subsets of scripts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cykyc@yahoo.com List-Id: Discussion related to /etc/rc.d design and implementation. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Aug 2004 17:01:52 -0000 Sorry, another self-reply... > subsets="zone1 internal external" > > for _i in ${subsets} > do > if [ -z "${_regexp}" ]; then > _regexp="'^# KEYWORDS?:.*${_i}" > else > _regexp="${_regexp}|^# KEYWORDS?:.*${_i}" > fi > done > _files=`eval "grep -El ${_regexp}' ${some_path}"` > rcorder ${skip} ${_files} 2>/dev/null Wow, I just re-implemented rcorder -k subset1 -k subset2 -k subset3 ... I'm gonna stop posting for a bit and think before I send. Sorry 'bout the traffic. Jon __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail