environment-variable-mac.ini文件UNIVER_USER_LOGIN='http://127.0.0.1/api/login'UNIVER_SEARCH_ORDINARY='http://127.0.0.1/api/search/common'UNIVER_SEARCH_LABEL='http://127.0.0.1/api/search/common'UNIVER_SEARCH_VIDEO='http://127.0.0.1/api/search/common'UNIVER_TASK_MANAGER='http://127.0.0.1/api/task/manager'UNIVER_PROJECR_URL='67.110.220.11'UNIVER_PROJECR_PORT=777778888怎么才能實現(xiàn)?
1 回答

慕神8447489
TA貢獻1780條經(jīng)驗 獲得超1個贊
使用awk命令即可
awk -F '=' 'BEGIN {print "{"} {print "\t"$1":"$2","} END{print "}"}' environment-variable-mac.ini > environment-variable-mac.json
添加回答
舉報
0/150
提交
取消