Feature request to rc.d: managing subsets of scripts

Jon Passki cykyc at yahoo.com
Sun Aug 8 10:01:52 PDT 2004


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


More information about the freebsd-rc mailing list