It grabs /home/kovetskiy for example... Not really useful.
I did a little hack in the code to get rid of it (src/github.com/kovetskiy/zabbixctl/search.go)
import (
"regexp"
"strings"
"bytes"
)
...
pattern := strings.Join(letters, "")
list := []string{".*", pattern ,".*"}
var str bytes.Buffer
for _, l := range list {
str.WriteString(l)
}
pattern = str.String()
Example: zabbixctl -Tp -xx /mo
[DEBUG] * searching m.o
It grabs /home/kovetskiy for example... Not really useful.
I did a little hack in the code to get rid of it (src/github.com/kovetskiy/zabbixctl/search.go)
You can use it, if you want