Easy Cmd line question

Hi

can’t seem to find it in the doco. but say do

/ip firewall filter
print

how can I print just line 5 with stats so

print stats where <item 5>
and to expand on that how can I print just 1 attribute for the above example say just bytes attribute ?

There is no option to specify 5, you can print by different parameters, like
/ip firewall filter> print chain=forward stats

And it will display all stats.
I would recommend to use Winbox, where you can set to show only required statistic.

You can use “from” command, but you need to print all rules first, because numbers must be assigned to rules in console.

/ip firewall filter print
/ip firewall filter print from=1

One atribute could be printed with the help of scripting, for example to print out only bytes from line 5 you could use command:

{:local b [ip firewall filter get number=5 bytes ]; :put “$b”}