Hi there, On Tue, 7 Dec 2021, Daniel wrote:
myhandle=$(echo `$nft -sa list chain $1 $2 $3 |grep -F $4|grep -oP '(# handle ).*'`|cut -d " " -f 3)
To me, quite apart from the reliance on a bunch of system utilities which I'd really prefer to avoid in an operation of this kind, that looks unnecessarily complex and rather fragile. This whole discussion suggests that something is missing from nft. -- 73, Ged.