I'm running a SELECT query against an SQL server.  I can see the output in front of me.  How do I arrange for that output to be written to a file, instead of to my screen?
How do I write the output of a SELECT SQL query to a file in Unix?
linux