title: find command to redirect output to text, but nothing works in this case
body: <p>seems like this should work, all the other examples I found seem to indicate that it will but it does not.</p>
  
  <p>It's a short little script to find all the error_log files over 1gb in size. Works fine like this, to print to the shell window:</p>
  
  <pre><code>find /home -type f -name error_log -size +1048576k
  </code></pre>
  
  <p>But when I try it with this:</p>
  
  <pre><code>find /home -type f -name error_log -size +1048576k &gt; output.txt
  </code></pre>
  
  <p>... I get nothing.</p>
  
  <p>Of course I've tested this searching for much smaller files, which there should be plenty on the server, like this:</p>
  
  <pre><code>find /home -type f -name error_log -size +50k &gt; output.txt
  </code></pre>
  
  <p>... still nothing.</p>
  
  <p>Also tried:</p>
  
  <pre><code>find /home -type f -name error_log -size +50k &gt;&gt; output.txt
  
  find /home -type f -name error_log -size +50k -print &gt; output.txt
  </code></pre>
  
  <p>.. and so on, but without luck.</p>
  
  <p>Update:</p>
  
  <p>I've continued to try just about everything to get this to work. My latest attempt, this gets me plenty, that is, written out to the shell window:</p>
  
  <p>find /home -type f -size +100k -name error_log -exec ls -lh {} \; | awk '{ print }'</p>
  
  <p>This however, gets me nothing but a blank .txt file:</p>
  
  <p>find /home -type f -size +100k -name error_log -exec ls -lh {} \; | awk '{ print > "zzzoutput.txt" }'</p>
  
  <p>The above should work, right?</p>