add working with json data

jq command
This commit is contained in:
onceupon 2018-04-10 14:38:09 +08:00 committed by GitHub
parent aea54c126c
commit b310c4acbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2409,6 +2409,13 @@ type pip
#5. Now you can install your pip package, here requirements.txt is simply a txt file containing all the packages you want. (e.g tornado==4.5.3).
pip install -r requirements.txt
```
##### working with json data
```bash
#install the useful jq package
#sudo apt-get install jq
#e.g. to get all the values of the 'url' key, simply pipe the json to the following jq command
jq '.[].url'
```
=-=-=-=-=-A lot more coming!! =-=-=-=-=-=-=-=-=-=waitwait-=-=-=-=-=-=-=-=-=-