Le Tue, 02 Dec 2008 15:31:23 +0000, Aneurin Price a écrit : > On Tue, Dec 2, 2008 at 12:33 PM, KLEIN Stéphane <[EMAIL PROTECTED]> > wrote: >> Hi, >> >> I need to update one octet in a binary file (it's disk image file raw). >> >> To do that, I use hexedit and I do update manualy. >> >> Now, I would like to script this task, I know address of octet to >> update and the new value. >> >> Do you know a tool to do that ? >> >> I've tried : >> >> echo "0xFF" | ascii2binary -b 16 | dd of=/tmp/out bs=1 count=1 seek=3 >> >> but the file is cutted after 4 octets. >> >> > Adding the option 'conv=notrunc' to the dd command should do what you > want.
Thanks to Alfredo and Aneurin for your help. Regards, Stephane -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]