mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2025-06-08 00:16:26 +00:00
Update 4_2__Interlude_Using_JQ.md
This commit is contained in:
parent
911081a092
commit
72eb94b0bb
@ -29,7 +29,7 @@ $ bitcoin-cli signrawtransaction $rawtxhex
|
||||
```
|
||||
Fortunately, JQ can easily capture data of that sort!
|
||||
|
||||
To use JQ, run `jq` at the backend of a pipe, and always use the standard invocation of `jq -r '.'`. The `-r` tells JQ to produce raw output, which will work for command-line variables, while the `.` tells jq to ouput. We protected it in `' '` because we'll need that protection later.
|
||||
To use JQ, run `jq` at the backend of a pipe, and always use the standard invocation of `jq -r '.'`. The `-r` tells JQ to produce raw output, which will work for command-line variables, while the `.` tells jq to ouput. We protect those argument in `' '` because we'll need that protection later as our `jq` invocations get more complex.
|
||||
|
||||
To capture a specific value from a JSON object, you just list the key after the `.`:
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user