title: Export cassandra query result to a csv file
body: <p>I'm new in cassandra, and I have to export the result of a specific query to a csv file.</p>
  
  <p>I found the <code>COPY</code> command, but (from what I understand) it allows you only to copy an already existing table to a csv file, and what I want is to copy directly the stdout of my query to the csv file. is there any way to do it with <code>COPY</code> command or with another way ?</p>
  
  <p>My command is style (<code>select column1, column2 from table where condition = xy</code>) and I'm using <code>cqlsh</code>.</p>