title: How to dump part of binary file
body: <p>I have binary and want to extract part of it, starting from know byte string (i.e. FF D8 FF D0) and ending with known byte string (AF FF D9)</p>
  
  <p>In the past I've used <code>dd</code> to cut part of binary file from beginning/ending but this command doesn't seem to support what I ask.</p>
  
  <p>What tool on terminal can do this?</p>