Tell me how to remove this “smart” functionality?
/ip firewall connection print from=[/ip firewall connection find connection-mark~"rdp"] terse
An example of output on a nested picture. Highlighted spaces in red.

Tell me how to remove this “smart” functionality?
/ip firewall connection print from=[/ip firewall connection find connection-mark~"rdp"] terse
An example of output on a nested picture. Highlighted spaces in red.

Do not ask help for do things on wrong way…
If you use “print” on scripting, you do something on wrong way…
What you try to achieve?
This is the simplest way of obtaining information for statistics, which I can then easily process, the spaces complicate a little, so I asked. Why would I complicate the simplest system if it works?
“print” is not to be used in script.
You do use find and get to get what you need
{
/ip firewall connection
:foreach i in=[find where protocol=tcp] do={
:put $i
:put [get $i orig-packets]
}
}
PS code is wrapped in and extra {} so you can past it to terminal.