mirror of https://github.com/CrimsonTome/tldr.git
jq: add single binary version (#13265)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: spageektti <git@spageektti.cc>pull/28/head
parent
cf3da06b07
commit
05294eb4a8
|
@ -7,6 +7,10 @@
|
||||||
|
|
||||||
`{{cat path/to/file.json}} | jq '.'`
|
`{{cat path/to/file.json}} | jq '.'`
|
||||||
|
|
||||||
|
- Execute a specific expression only using the `jq` binary (print a colored and formatted JSON output):
|
||||||
|
|
||||||
|
`jq '.' {{/path/to/file.json}}`
|
||||||
|
|
||||||
- Execute a specific script:
|
- Execute a specific script:
|
||||||
|
|
||||||
`{{cat path/to/file.json}} | jq --from-file {{path/to/script.jq}}`
|
`{{cat path/to/file.json}} | jq --from-file {{path/to/script.jq}}`
|
||||||
|
|
Loading…
Reference in New Issue