#!/bin/bash RULESET="add table ip x add set x y {type ipv4_addr; flags interval;} add element x y { 10.0.24.0/24 } " set -e $NFT -f - <<< "$RULESET" $NFT delete element x y { 10.0.24.0/24 }