Skip to content

IceFoxs/bash_yml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

bash shell 解析 yml 格式配置文件

例如:/home/application.yml 内容如下

spring:
    datasource:
        password: 123456
        username: root

读取方式为spring.datasource.password

password=`getYmlValue /home/application.yml  spring.datasource.password`
echo $password

About

bash shell 解析 yml 格式配置文件

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages