#This is the first time I have written a RouterOS script and what I'm trying to do is to isolate the IPs of three entries in my firewall ruleset, compare them to the [:resolve]'d value, and replace the value if it is different. I can't seem to get my output to only display the IP address present in the src-address field, though. Below is a sample of what I am attempting, and the output I'm getting. I have tried many variants of this, but this is the most promising attempt I've had.
[admin@RouterOS] > /ip firewall filter get [/ip firewall filter print where comment~".com"] src-address
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; Allow yahoo.com connections to anything
chain=forward action=accept protocol=tcp src-address=72.30.2.43
1 ;;; Allow google.com connections to anything
chain=forward action=accept protocol=tcp src-address=74.125.95.147
2 ;;; Allow facebook.com connections.
chain=forward action=accept protocol=tcp src-address=69.63.189.16
no such item