how to list nft chain only specific rule by handle number, for example this command nft -n list -n table bridge b -a will print :
table bridge b {
chain ens160-ingress {
type filter hook prerouting priority 0; policy accept;
oifname "ens160" vlan id 4092 mark set 0x00000005 counter packets 0 bytes 0 # handle 2
oifname "ens160" vlan type != vlan mark set 0x00000064 counter packets 0 bytes 0 # handle 3
}
and i want just to print the line of handle 3
User contributions licensed under CC BY-SA 3.0