Skip to content
Noboru Saito edited this page Jan 28, 2018 · 8 revisions

Welcome to the trdsql wiki!

trsql

Execute SQL to CSV, TSV, LTSV, JSON

Alternative usage

Clarity of command output

Ignore the space before and after the delimiter. So, it can be used in the shaping of the output of the command.

$ ps |trdsql -oat -ih -id " " "SELECT * FROM -"
+-------+-------+----------+--------+
|  PID  |  TTY  |   TIME   |  CMD   |
+-------+-------+----------+--------+
| 11704 | pts/2 | 00:00:00 | ps     |
| 11705 | pts/2 | 00:00:00 | trdsql |
| 23171 | pts/2 | 00:00:27 | zsh    |
+-------+-------+----------+--------+
Clone this wiki locally