You can use dd if=logfile of=pieceoflogfile skip=startingblock count=#ofblocks
(possibly with bs=1
to get one-byte blocks, otherwise it uses 512 byte blocks). Not sure how efficient it is to tell it to write one byte at a time, though.
↧
Answer by DerfK for Linux command to retrieve a byte range from a file
↧