Code: Select all
:foreach k in=[/interface find] do={:log info $k}
Why is there a "*" in front of each number? It doesn't appear to do any harm because this lists the names of the scripts:
Code: Select all
:foreach k in=[/interface find] do={:log info [/interface get $k name]}
However, if you try this command you get an error "no such item":
Code: Select all
:log info [/interface get $1 name]