Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Aug 2004 10:01:51 -0700 (PDT)
From:      Jon Passki <cykyc@yahoo.com>
To:        freebsd-rc@freebsd.org
Subject:   Re: Feature request to rc.d: managing subsets of scripts
Message-ID:  <20040808170151.64512.qmail@web50307.mail.yahoo.com>
In-Reply-To: <20040808162649.80859.qmail@web50302.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Sorry, another self-reply...

<snip> 
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040808170151.64512.qmail>