$ sqlite3 db 'create table exampl (one, two)'; $ sqlite3 -separator $'\t' db 'explain select one from exampl'; | tee ops |head -n 3 0 Goto 0 10 1 Integer 0 0 2 OpenRead 0 2 # Edited output in asc format $ ./vdbe_graph.pl -f asc ops [...] +------------------------+ | 2 OpenRead (0, 2) | +------------------------+ v +------------------------+ | 3 SetNumColumns (0, 1) | +------------------------+ v +------------------------+ | 4 Rewind (0, 8) | -+ +------------------------+ | v | +------------------------+ | +> | 5 Column (0, 0) | | | +------------------------+ | | v | | +------------------------+ | | | 6 Callback (1, 0) | | | +------------------------+ | | v | | +------------------------+ | +- | 7 Next (0, 5) | | +------------------------+ | v | +------------------------+ | | 8 Close (0, 0) | <+ +------------------------+ v [...]