title: Write byte at address (hexedit/modify binary from the command line)
body: <p>Is there any straightforward way to modify a binary from the commandline?</p>
  <p>Let's say I know that my binary contains 1234ABCD and I want to change it to 12FFABCD or FFFFABCD or maybe even FF34FFABC0 (you get the idea) :-)</p>
  <p>How might I achieve that without using any special purpose tools like <a href="http://stahlworks.com/dev/swiss-file-knife.html" rel="nofollow noreferrer">Swiss File Knife</a> or similar?</p>
  <p>It would be great to do it just from the command line with only standard Linux tools.</p>
  <p>Or maybe even better, instead for searching for the hexadecimal string I want to replace directly writing FF at <em>offset</em> 0x10000, 12 at <em>offset</em> 0x100001 and so on.</p>
  <p>It should be scriptable and run directly from the command line. I am looking for something like &quot;binary-which-is-included-in-the-distro --write AB --at-offset 100000 --file thebinary.bin&quot;. I am quite sure that it is possible with <a href="https://en.wikipedia.org/wiki/Dd_%28Unix%29" rel="nofollow noreferrer">dd</a>, but I wasn't able to wrap my head around the <a href="https://en.wikipedia.org/wiki/Man_page" rel="nofollow noreferrer">man page</a>.</p>