Dump results from bitcoin-qt debug console to file
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.