Skip to content

Commit c0dca5c

Browse files
authored
JQ Now available as package
Per #578. Thanks to @tuckertranslator
1 parent 3034ebd commit c0dca5c

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

04_2__Interlude_Using_JQ.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,21 @@ Creating a raw transaction revealed how more complex bitcoin-cli results can't e
44

55
## Install JQ
66

7-
JQ is available from a [Github repository](https://stedolan.github.io/jq/). Just download for Linux, OS X, or Windows, as appropriate.
7+
For modern versions of Debian, you should be able to install JQ using `apt-get`:
8+
```
9+
# apt-get install jq
10+
```
11+
> :book: ***What is JQ?*** The repository explains it best, saying "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."
12+
13+
If that works, you're done!
14+
15+
Otherwise, you can download JQ from a [Github repository](https://stedolan.github.io/jq/). Just download a binary for Linux, OS X, or Windows, as appropriate.
816

917
Once you've downloaded the binary, you can install it on your system. If you're working on a Debian VPS as we suggest, your installation will look like this:
1018
```
1119
$ mv jq-linux64 jq
1220
$ sudo /usr/bin/install -m 0755 -o root -g root -t /usr/local/bin jq
1321
```
14-
> :book: ***What is JQ?*** The repository explains it best, saying "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."
15-
1622
## Use JQ to Access a JSON Object Value by Key
1723

1824
**Usage Example:** _Capture the hex from a signed raw transaction._

0 commit comments

Comments
 (0)