title: Saving Redis query output to file
body: <p>Using redis-cli I connected to specific server:</p>
  
  <p><code>redis-cli -h 10.1.xx.xx</code></p>
  
  <p>And <code>select 1</code></p>
  
  <p>Then just to get list of one key features:</p>
  
  <p><code>KEYS data_column*</code></p>
  
  <p>THis will print list of that column values on command line. However, there are like quite many values, I want to save query output to file.</p>
  
  <p>In general, using <code>&gt; file_name</code> after the command works. But in this case, it does not work, as its on redis server, though from command line. How to save such query result?</p>