I would like to merge efficiently binary files using a shell command and I quickly found classical ways like this one :
cat file1 file2 > file3
Not bad but :
- It's slow. IO access are slow.
- It needs extra space. I don't want to copy the files. Just concatenate them.
File systems are great to handle file fragmentation. Can't we just merge files using this mecanism?