All indexes

Description

The all indexes selector allows you to target all items of a list or map.

Usage

This must be used in conjunction with the -m, --multiple flag.
1
.[*]
Copied!

Example

Array

1
echo '{"x": [1, 2, 3]}' |
2
dasel select -m -p json '.x.[*]'
3
​
4
1
5
2
6
3
Copied!

Object/Map

1
echo '{"x": {"x": 1, "y": 2, "z": 3}}' |
2
dasel select -m -p json '.x.[*]'
3
​
4
1
5
2
6
3
Copied!
Last modified 6mo ago