X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=jq%2FREADME.md;h=af802462e3fc71f7ef3acda162e93c7459ceee62;hb=91512157ab426c87e0a82b594620e90e324b23a3;hp=092328939c6691c00bc0651e4111a36ed507b3f1;hpb=3a224e58f164d6783c7d1903648b488e6f2f1615;p=webi-installers%2F.git diff --git a/jq/README.md b/jq/README.md index 0923289..af80246 100644 --- a/jq/README.md +++ b/jq/README.md @@ -3,10 +3,16 @@ title: jq homepage: https://stedolan.github.io/jq/ tagline: | jq is a lightweight and flexible command-line JSON processor. -description: | - `jq` is like `sed` for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that `sed`, `awk`, `grep` and friends let you play with text. --- +To update or switch versions, run `webi jq@stable` (or `@v1.6`, `@beta`, etc). + +## Cheat Sheet + +> `jq` is like `sed` for JSON data - you can use it to slice and filter and map +> and transform structured data with the same ease that `sed`, `awk`, `grep` and +> friends let you play with text. + All jq selectors begin with `.` - don't forget that! Be sure to checkout the @@ -34,7 +40,7 @@ echo '{ "name": "foo" }' | jq -r '.name' ``` ```txt -"foo" +foo ``` ### How to select a whole object