title: Parsing pcap using bash script
body: <p>I am trying to parse pcap file using bash script</p>
  
  <p>The command is stored in the form of bash array</p>
  
  <pre><code>cmd=( tshark -nr $pcap -z conv,tcp, "(ip.src == $client1 &amp;&amp; ip.dst == $server ) || (ip.dst == $client1 &amp;&amp; ip.src == $server)" -q  )
  </code></pre>
  
  <p>And then is executed as follows </p>
  
  <pre><code>"${cmd[@]}" &gt; statistics.csv
  </code></pre>
  
  <p>But the problem is that the filter specified after <code>"conv,tcp"</code> in the above array is not being applied. </p>
  
  <p>Please help with this.</p>
  
  <p>Thanks</p>