indexOf
Syntax
indexOf(input, substring)<string>.indexOf(substring)Arguments
Examples
indexOf("hello world", "world")
// 6"foobar".indexOf("bar")
// 3"hello".indexOf("xyz")
// -1Last updated
$ echo '{"path": "/api/v2/users"}' | dasel -i json 'path.indexOf("/v2")'
4"hello world".indexOf("world") >= 0
// true