title: How to get tcpdump to save to a file without using binary?
body: <p>I want to capture the packet content description and the packet data to a file with <code>tcpdump</code> for later inspection.</p>
  
  <p>Currently I am using the <code>-w</code> option to save packet data to a file:</p>
  
  <pre><code>tcpdump -c 100 -w /root/tcpdump.txt
  </code></pre>
  
  <p>This saves the packet data to the file but also includes several lines of binary before each packet. However, I would like to have the packet content description (what's normally shown on STDOUT when running <code>tcpdump</code>) shown before the packet data itself (in the same file) without the binary.</p>
  
  <p>So the file should save the following for each packet:</p>
  
  <ol>
  <li>Packet content description</li>
  <li>Packet data</li>
  </ol>
  
  <p>Example of what I want to save to the file:</p>
  
  <pre><code>17:17:42.847059 IP some.server.com.17845 &gt; some.host.net.55618: Flags [P.], seq 137568:137888, ack 1185, win 167, length 320
  &lt;-- Followed by the raw packet data here --&gt;
  </code></pre>
  
  <p>This information is to be used for later analysis of the file so we can review the full packets going to a specific host/address.</p>
  
  <p>Can anyone suggest how to do this?</p>