Hard to say because it depends on what you want the parser to extract from your YAML document. For simple cases, you might be able to use grep
, cut
, awk
etc. For more complex parsing you would need to use a full-blown parsing library such as Python's PyYAML or YAML::Perl.