- 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īng)用典型實(shí)例
- 人工免疫算法改進(jìn)及其應(yīng)用
- MicroPython Projects
- 統(tǒng)計(jì)策略搜索強(qiáng)化學(xué)習(xí)方法及應(yīng)用
- Docker High Performance(Second Edition)
- Deep Reinforcement Learning Hands-On
- PVCBOT機(jī)器人控制技術(shù)入門
- Photoshop CS5圖像處理入門、進(jìn)階與提高
- Java組件設(shè)計(jì)
- Hands-On Geospatial Analysis with R and QGIS
- Mastering Machine Learning with R
- Mastering Android Game Development with Unity
- 互聯(lián)網(wǎng)單元測試及實(shí)踐
- 巧學(xué)活用AutoCAD
- 單片機(jī)與微機(jī)原理及應(yīng)用