<p>You can install <code>bitcoin-cli</code>, and update your <code>bitcoin.conf</code> to enable the RPC server. <code>bitcoin-cli</code> will let you pipe the output from the commands through to any shell commands you want, or redirect to a file.</p>

CC BY-SA 4.0
2018-05-29T10:09:49.810Z
2018-05-29T10:09:49.810Z
Raghav Sood
<p>I would like to issue some commands in the Bitcoin-qt console and save their output to a text file (ideally, filter it before saving). Is there a way to do that, similar to how I would use <code>grep</code> and <code>&gt;</code> in a regular Linux terminal?</p>

<bitcoin-core><bitcoin-cli>
Dump results from bitcoin-qt debug console to file
Sergei Tikhomirov
# Dump results from bitcoin-qt debug console to file

(Asked by: username_0 on 2018-05-29)

I would like to issue some commands in the Bitcoin-qt console and save their output to a text file (ideally, filter it before saving). Is there a way to do that, similar to how I would use `grep` and `>` in a regular Linux terminal?

**Tags:** bitcoin-core, bitcoin-cli


---

## 1 answers

### Answer by username_1 on 2018-05-29. Score: 1 | Accepted answer

You can install `bitcoin-cli`, and update your `bitcoin.conf` to enable the RPC server. `bitcoin-cli` will let you pipe the output from the commands through to any shell commands you want, or redirect to a file.


---

