title: Write a certain hex pattern to a file from bash
body: <p>I am trying to do some memory tests and am trying to write a certain hex pattern to a regular file from bash. How would I go about doing this without using the xxd or hexdump tool/command?</p>
  
  <p>Thanks, 
  Neco</p>