update
This commit is contained in:
parent
21679a291a
commit
8f0fc71c76
@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 修改json文件的属性值
|
||||
# 调用方式:modify_json_file "/foo/bar.json" "person.name" "张三"
|
||||
function modify_json_file() {
|
||||
local json_file=$1 # json文件路径
|
||||
local key=$2 # 要修改的key
|
||||
|
||||
Loading…
Reference in New Issue
Block a user