title: Redirecting pv output to file
body: <p>I'm using the pv utility to asses the speed of log entries being added in a log file, like this:</p>
  
  <pre><code>tail -f -n 0 mylog.log | pv -lr -t -i 5 &gt; /dev/null
  </code></pre>
  
  <p>This outputs the addition speed and refreshes every 5 sec:</p>
  
  <pre><code>0:00:05 [  10/s]
  </code></pre>
  
  <p>Now, I would like to redirect the current value ("10") to a file and refresh it every 5s. Not append it, just overwrite the previous value in the file. 
  Any idea on how to do the redirection to file? I'm pretty new in unix and haven't got it to work yet.</p>
  
  <p>Thanks!</p>