From 60ab77ee51e3a1c64a8d6c6457772782fc561782 Mon Sep 17 00:00:00 2001 From: Shannon Appelcline Date: Wed, 29 Mar 2017 15:02:50 -0700 Subject: [PATCH] Update 4_2__Interlude_Using_JQ.md --- 4_2__Interlude_Using_JQ.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/4_2__Interlude_Using_JQ.md b/4_2__Interlude_Using_JQ.md index 9d899f5..c407d8e 100644 --- a/4_2__Interlude_Using_JQ.md +++ b/4_2__Interlude_Using_JQ.md @@ -374,7 +374,7 @@ $ ./txfee-calc.sh $rawtxhex ## Make Some New Aliases -JQ code can be a little unwieldly, so you should consider adding some longer and more interesting invocations to your ~/.bash_profile +JQ code can be a little unwieldly, so you should consider adding some longer and more interesting invocations to your ~/.bash_profile. Any time you're looking throug a large mass of information in a JSON Object output from a bitcoin-cli command, consider writing an alias to strip it down to just what you want to see. ``` alias btcunspent="bitcoin-cli listunspent | jq -r '.[] | { txid: .txid, vout: .vout, amount: .amount }'" alias btctxfee="~/txfee-calc.sh"