App::ypath - Extract information from YAML
# separate keys by / % extract_yaml_info dist_info/dist_file directory_of_yaml_files # separate multiple values with commas % extract_yaml_info dist_info/dist_file,run_info/alarm_error directory_of_yaml_files # print the filename with each output line % extract_yaml_info -f dist_info/dist_file directory_of_yaml_files # print the path to each value % extract_yaml_info -f -k dist_info/dist_file directory_of_yaml_files # suppress warnings % extract_yaml_info -w dist_info/dist_file directory_of_yaml_files
This is a simple script to extract values from a list of YAML files. It's meant for simple and quick inspections rather than full-on queries and collations.
Support @ in any position as a wildcard to process all thingys at that level
This code is in Github:
brian d foy,
Copyright © 2010-2018, brian d foy <email@example.com>. All rights reserved.
You may redistribute this under the terms of the Artistic License 2.0.