A Python script for lldb
that writes the output of a command to a given file.
Import the script manually:
(lldb) command script import /path/to/lldb-write/write.py
Or add command script import /path/to/lldb-write/write.py
to ~/.lldbinit.
(lldb) write filename command
Example:
(lldb) write reg.txt register read