Recursively pluck matching paths from YAML.
gem install dorian-yaml-deep-pluckAlso included in the aggregate gem:
gem install dorianyaml-deep-pluck [options] key [key ...] [file ...]Run yaml-deep-pluck -h for generated option details and yaml-deep-pluck -v for the installed version.
- Keys can be mapping keys or array indexes. Use
--yamlfor YAML output or--rubyfor Ruby inspection output.
printf -- '- [1]\n- [2]\n' | yaml-deep-pluck 0