title: Passing binary data as arguments in bash
body: <p>I need to pass binary data to a bash program that accepts command line arguments. Is there a way to do this?</p>
  
  <p>It's a program that accepts one argument:</p>
  
  <pre><code>script arg1
  </code></pre>
  
  <p>But instead of the string <code>arg1</code>, I'd like to pass some bytes that aren't good ASCII characters - in particular, the bytes <code>0x02</code>, <code>0xc5</code> and <code>0xd8</code>.</p>
  
  <p>How do I do this?</p>