2020-03-03 20:43:38

This commit is contained in:
monlor
2020-03-03 20:43:38 +08:00
parent 3b23ed288f
commit a6a1e0a5fc
23 changed files with 177 additions and 41 deletions

View File

@@ -279,3 +279,10 @@ bincheck () {
return $?
}
# 通过传入一个字符串,取变量名称等于该字符串的变量值
function parse_str() {
[ -z "${1}" ] && echo -n "" || eval echo -n '$'"${1}"
}