I have a need for a bash command that does the following: Write a new file in which the two first bytes contain the raw hex bytes (not ASCII) of a value (start address in this case). I.e., 49152 should be written to the file as 00 c0. I tried several combinations of printf, xxd, fold, tac/cat etc. This presents