how to extract 12-byte fragments from a binary file at specific file positions.
If I wanted to extract the first 12 bytes, I could do something like
head -c12 file.bin>output
If I wanted to extract 12 bytes from byte61, I could do something like
head -c72 file.bin|tail -c12 >output
Is there an easier way if I have something like 20 12 byte chunks that I need to extract
thanks
file extract byte
monkeyking
source share