Search matching paths
Searching is a useful way to find the paths in a document. The following file with multiple repeated names is used in the examples:
| conf-multi.yaml | |
|---|---|
To get the path to pswd:
Which will print the path as a YAML list by default (use the type --output-type flag for other output):
Where searching for the usr key:
prints the following paths:
To print the values as YAML (or JSON), use the --output-type type YAML:
prints the following paths:
The path separator will be used as is set in the env:
results in: