Saves query results to the file filename or pipes query results into a separate shell to execute command. If no arguments are specified, the query output is reset to the standard output.
Query results includes all tables, command responses, and notices obtained from the database server.
Tip: To intersperse text output with query results, use \qecho.