Date: Mon, 7 Jul 2003 09:56:36 +0200 From: Nicolas Rachinsky <list@rachinsky.de> To: hackers@freebsd.org Subject: Re: hints on shell string expansion ? Message-ID: <20030707075636.GA4724@pc5.i.0x5.de> In-Reply-To: <20030707004626.B56037@xorpc.icir.org> References: <20030707004626.B56037@xorpc.icir.org>
next in thread | previous in thread | raw e-mail | index | archive | help
* Luigi Rizzo <rizzo@icir.org> [2003-07-07 00:46 -0700]: > but i because the string of actions is used in several places, > I would love to find a way to group actions into a single > variable and then write something like this > > actions="allow 'deny log' 'pipe 10'" > for act in $actions ; do > echo "add $act ip from 1.2.3.4 to 5.6.7.8" > done actions="allow 'deny log' 'pipe 10'" eval "for act in $actions ; do"' echo "add $act ip from 1.2.3.4 to 5.6.7.8" done' But I'm shure there are better ways. Nicolas
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030707075636.GA4724>