parse YAML on bash script
How to parse and use the YAML file in bash/shell script
Create this function:
function parse_yaml {
local prefix=$2
local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034')
sed -ne "s|^\($s\):|\1|" \
-e "s|^\($s\)\($w\)$s...
esli.hashnode.dev1 min read