print on the ip without the netmask...

hi,

i am trying to have a script to provide me the bridge ip with out the subnet…

/tool e-mail send server=27.132.97.7 to=xxx@reboot.net from=xxxx@reboot.net subject=“$[/system identity get name] $[/system clock get time] $[/system clock get date]” body=“$[/ip address get [find interface=”$([/interface find type=bridge] name)“] address], The Radio just rebooted 5 minutes ago, please take note.”

this will provide me all the bridge detail, now, i going to make use this script for another thing…
how can i get the bridge only ip like 192.168.1.10 instead of 192.168.1.10/24

appreciate it.

To strip netmask, this code will work: http://wiki.mikrotik.com/wiki/Manual:Scripting-examples#Strip_netmask