如何提取如下所示的值3be847cb-48d6-ea4d-05ab-ee8ea2bd7337?我试图使用awk和{'print $'}之类的东西,但这不起作用,因为整个输出是第一项。
命令:
$ curl -s --request GET http://x.y.z.10:8500/v1/kv/my-key-value
输出:
[{"LockIndex":0,"Key":"w-key-value","Flags":0,"Value":"Nw==","Session":"3be847cb-48d6-ea4d-05ab-ee8ea2bd7337","CreateIndex":16,"ModifyIndex":33212}]