Skip to content

Commit

Permalink
Adding JQ
Browse files Browse the repository at this point in the history
  • Loading branch information
sharatsc committed Apr 11, 2017
1 parent b142fed commit f80ca1b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,11 @@ echo '{"foo": 10}' | jq '.foo + 1'
echo '{"foo": [1,2,3], "bar": [11,12,13]}' | jq '.foo + .bar'
[1,2,3,11,12,13]
</code></pre>

## Exercise
Explore the commits to the repository
<pre><code>
# Getting commits
curl https://api.github.com/repos/sharatsc/cdse/commits | more
curl https://api.github.com/repos/sharatsc/cdse/commits | jq '.[]|.commit.message'
</code></pre>

0 comments on commit f80ca1b

Please sign in to comment.