在外壳中串联拖曳字符串

时间:2018-06-22 09:45:00

标签: json shell

我想在shell中连接2个字符串,我有这个小代码,我想更改变量groups的值并将其添加:*${Team1}_${Team11}* 当前groups包含${result},我应该添加它${Team1}_${Team11}

 \"policyItems\": [ \
            { \
                \"accesses\": [ \
                    { \
                        \"isAllowed\": true, \
                        \"type\": \"submit-app\" \
                    }
                ], \
                \"conditions\": [], \
                \"delegateAdmin\": false, \
                \"groups\": [ \
                    ${result} \
                ], \
                \"users\": [] \
            } \
        ]

如何进行串联?

0 个答案:

没有答案