Is there a better way to join files that have been splitted than just doing a "cat" or "join"? These commands just copy the file streams into a new file on disk. A much better way would be manipulating the filesystem pointers to join the files into one big continuous file. Of course this would be filesystem specific. Is there something available for ext2 or ext3?
Once I had one file with 2Gb and I wanted to add a file at the header of that.
I would cat a new file, but was concerned about performance.
So I ended up using "vi" on the big file and typed
It worked, and faster than cat.
Maybe "vi" is clever at rewriting the file, I've never seen the code, though.
No, the correct way to split files is:
and conCATenate them:
Trying to do this with the underlying filesystem is the wrong approach if for no other reason than it wouldn't be portable.