且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用gcloud命令从json中仅提取名称字段?

更新时间:2023-11-26 11:20:40

最后,我能够使用以下命令获取 name 值:

Finally, I was able to get the name value using the below command:

gcloud firestore索引组合列表--format = json |grep'"名称"'|awk -F'''{print $ 2}'|awk -F''''{print $ 2}'

输出:

projects/emc-ema-simcs-d-xxxxxx/databases/(default)/collectionGroups/customer/indexes/CICAgNjbhowK