title: How to save tshark statistics in variables
body: <p>I would like to save the output of a <code>tshark</code> command in a variable. </p>
  
  <p>For example if I run:</p>
  
  <pre><code>tshark -r capture.pcap -qz io,stat,0
  </code></pre>
  
  <p>I will get :</p>
  
  <pre><code>Time            |frames|  bytes
  
  00.000-060.000     742     51660
  </code></pre>
  
  <p>I want to save the total number of frames in a variable in my script for further calculations.</p>