I have a 588Ko file, and I want to extract bytes from 0x7E8D6 to 0x8AD5D.
I tried :
dd if=file of=result bs=50311 count=1 skip=518358
- 50311 stands for 0x8AD5D - 0x7E8D6
- 518358 stands for 0x7E8D6 (from where I want to cut)
dd tells me that it can't skip to the specified offset. What can I do? Is there any other utility to do it?
dd iflag=skip_bytes,count_bytes skip=518358 count=50311
ordd iflag=fullblock bs=518358 skip=1 count=1
and thentruncate
. – frostschutz Jun 18 '18 at 19:00