Search Optional
Last updated
Last updated
Search optional selectors recursively search all the data below the current node and return all of the results.
This differs from search in that the query does not fail when the field you filter on does not exist.
Available since v1.26.0.
This must be used in conjunction with the -m
, --multiple
flag.
The key defines which property/selector we should use to extract a value.
If <key>
is:
.
or value
- dasel checks if the current nodes value is <value>
.
-
or keyValue
- dasel checks if the key/name/index of the current node is <value>
.
Else dasel uses the key as a selector itself and compares the result against <value>
.
The value is the expected value for the check to pass.
Note that dasel will stringy values prior to checking if they match.
Dasel supports the following comparison operators:
Operator | Supported since |
---|
|
|
|
|