You could do something like this: dd if=original of=start bs=1k count=3 dd if=original of=rest skip=3 bs=1
edit start then cat start rest > complete Jeff On Fri, Oct 31, 2003 at 03:21:23PM -0700, J. Rafael Sanchez wrote: > Hey guys, > > I have a huge file that needs to be edited using a hex editor. Right now > i'm using khexedit. The only problem is that this is a multiuser > environmnet and every time the file is loaded it uses 80 to 90% of > memory. It loads the "whole" file into memory. Everyone else's processes > suffer because of it. > > The section of the file that needs to be edited is the first 2k. To > extract this section and read it into the editor, make the changes is > not a problem. The challenge comes in now that I want to put it back at > the begining of the file. > > to extract, > $ dd if=pathtoverybigfile of=pathtosectionoffile bs=2k count=1 > > How to reverse this so that a put the changed section back into the orig > file? > > Thanks guys. > > Rafael. >
signature.asc
Description: Digital signature
