From b310c4acbe432aab070d77974ca6b563874361c6 Mon Sep 17 00:00:00 2001 From: onceupon Date: Tue, 10 Apr 2018 14:38:09 +0800 Subject: [PATCH] add working with json data jq command --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 0b020d0..936baee 100644 --- a/README.md +++ b/README.md @@ -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-=-=-=-=-=-=-=-=-=-