I have a Linux (Kubuntu) system with a large (~20Gb) file which I would like to mess with. Specifically, I want to copy the entire contents of another large file (~12Gb) to the middle of this file, and keep the bits of the file which are not overwritten.
This is what I want to happen, with the text between the pipes representing file contents:
outfile: |abcdefghijklmnopqrstuvwxyz| infile: |123456789|
outfile: |abcdef123456789pqrstuvwxyz| (infile is here ^^^^^^^^^)
I tried this:
dd if=infile of=outfile seek=162
(162 is the number of sectors I want to offset by in outfile)
But this is what happened:
outfile: |abcdef123456789| (missing part of outfile ^)
What is the best way to do this?