If you need to convert MySQL Client output as CSV here is a recipe
We will talk about a way which allow us to make keep aggregated data.
dtruss is analog of strace in linux. It allows you to trace system calls from a running process or run a process with tracing. Also we are take a look on an alternative way.