Code: Select all
/ip hotspot user [ find comment~"a" ]
/ip hotspot user [ find comment~"a" ]
/ip hotspot user find comment!~"a"
/ip hotspot user find comment!~"a" comment~"b"
:local test [/ip hotspot user find comment!~"a" comment~"b"]
{
:loc d [/system clock get date];
:local mo [:pick $d 0 3];
/ip h u remove [ find comment!~ "$mo" ]
}
{
:loc d [/system clock get date];
:local mo [:pick $d 0 3];
/ip h u remove [ find comment~ "$mo" ]
}
/ip hotspot user print where !(comment~"a")