Semi-Normal on Nostr: So I'm quite sure this has to be a dumb question... but I can't find an answer. How ...
So I'm quite sure this has to be a dumb question... but I can't find an answer.
How do I use the output of a bitcoin-cli function as an input for a second bitcoin-cli function from the Linux command line?
I.E. bitcoin-cli getblock bitcoin-cli getblockhash 0
Thinking I probably need pipes somehow.. but can't get it to work.
Published at
2023-02-27 00:22:39Event JSON
{
"id": "8068a2c02cb02faf0ff592a210ad0bd384724df21f4bc5ef925e04637895bd44",
"pubkey": "bc445e748d24863a0dddb2c4b8fe796c49612ecb6f4bf63e7e9a97c28d6af4f2",
"created_at": 1677457359,
"kind": 1,
"tags": [],
"content": "So I'm quite sure this has to be a dumb question... but I can't find an answer. \n\nHow do I use the output of a bitcoin-cli function as an input for a second bitcoin-cli function from the Linux command line?\n\nI.E. bitcoin-cli getblock bitcoin-cli getblockhash 0\n\nThinking I probably need pipes somehow.. but can't get it to work.",
"sig": "dbd48a9cfd817c040e7556cca1ec67f39146cc7010ca338501adb28e598d1686bb5786a8fe0346248937dbcf5d7ea5ca0dc089adb356bc971d29b9234e41f598"
}