* Luigi Rizzo <[EMAIL PROTECTED]> [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

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to