Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • when you say "I have 2 files", do you mean "memory devices"? And: what operating system are you on? What does this have to do with hex, and what's "bbe"? What do you mean with "combine", what does that entail, how do you want to use the combination? Commented Jun 26 at 11:06
  • They are 2 bin files. bbe is like sed. I have win7 and also kali. Commented Jun 26 at 11:12
  • Are the files exactly sized to merge this way, or can there be a ragged tail ? I would consider scripting a loop which runs dd alternately on the input files, and redirects all the output to the new file. Use the ibs= option to specify the required size of each block in the iteration. Commented Jun 26 at 11:14
  • What should happen when we get to the end of one of the files? Commented Jun 26 at 11:16
  • Yes, they are. nand. bin is 67108864bytes and spare.bin is 2097152bytes. So the number of blocks will be the same for both files. Commented Jun 26 at 11:19