Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Parse Yaml (Native Bash)

Got most of script from this Github post

Args

  1. yaml source
  2. keys to search for
  3. delimiter when passung multiple keys (defaults to |)

Use

parse_yaml sauce.yml "key1|key2|key3"

parse_yaml sauce.yml "key1-key2-key3" "-"

How it's different from OG

  • is POSIX compliant
  • searches for keys
  • filters whitespace
  • bug in og that would include comments after value

Problems

  • Can't find array values

About

Yaml parser that can be run in bash natively (POSIX compliant)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages