Index
Index expect 1 argument.
It can be used with a list, and returns the value at the given index list.
Because the index function is commonly used dasel has a recognised alias of
[x]
that results in a index(x)
call.$ echo '["a","b","c"]' | dasel -r json 'index(1)'
"b"
$ echo '["a","b","c"]' | dasel -r json '[1]'
"b"
Last modified 9mo ago