- AWS Administration Cookbook
- Lucas Chan Rowan Udell
- 104字
- 2021-07-09 18:18:34
jq
jq is a lightweight tool for processing and transforming JSON. It follows the Unix philosophy of doing one thing and doing it well. It can be found at https://stedolan.github.io/jq/.
While jq and JMESPath are similar, jq is a lot easier to get started with. It also supports transforming JSON into plaintext; JMESPath queries will always return more JSON.
You can pipe JSON results from the CLI tool to it, and easily transform the results for use elsewhere. This example uses jq's property name selectors to convert JSON output to text:
$ aws ec2 describe-availability-zones --output json | jq '.AvailabilityZones[].ZoneName'
"us-east-1a"
"us-east-1c"
"us-east-1d"
"us-east-1e"
推薦閱讀
- 程序設(shè)計(jì)語(yǔ)言與編譯
- 大數(shù)據(jù)時(shí)代的數(shù)據(jù)挖掘
- 可編程控制器技術(shù)應(yīng)用(西門子S7系列)
- Hybrid Cloud for Architects
- 人工智能實(shí)踐錄
- Google SketchUp for Game Design:Beginner's Guide
- 手機(jī)游戲程序開(kāi)發(fā)
- Extending Ansible
- 中文版AutoCAD 2013高手速成
- 機(jī)器學(xué)習(xí)案例分析(基于Python語(yǔ)言)
- Practical AWS Networking
- 算法設(shè)計(jì)與分析
- Practical Network Automation
- Spark Streaming實(shí)時(shí)流式大數(shù)據(jù)處理實(shí)戰(zhàn)
- 計(jì)算機(jī)仿真技術(shù)