I am working in a script to get only the ip address from queue simple, but I have a bit problem
the script what I am trying for get only ip address without the netmask is
ros code
foreach i in=[queue simple find ] do={ local tmp [/queue simple get value-name=target $i] local ip [pick $tmp 0 [:find $tmp "/"]] put $ip} 192.168.88.2/32 192.168.88.3/32I need only this output
192.168.88.2
192.168.88.3
if I execute this command, is working:
ros code
local tmp 192.168.88.2/32; put [pick $tmp 0 [:find $tmp "/"]] 192.168.88.2
I am wrong but where?