title: Insert bytes into file using shell
body: <p>I would like to use a linux shell (bash, zsh, etc.) to insert a set of known bytes into a file at a certain position. <a href="https://stackoverflow.com/questions/4783657/cli-write-byte-at-address-hexedit-modify-binary-from-the-command-line?answertab=votes#tab-top">Similar questions</a> have been asked, but they modify in-place the bytes of a file. These questions don't address inserting new bytes at particular positions.</p>
  
  <p>For example, if my file has a sequence of bytes like <code>\x32\x33\x35</code> I might want to insert <code>\x34</code> at position 2 so that this byte sequence in the file becomes <code>\x32\x33\x34\x35</code>.</p>