To read a specific range of characters (bytes) in a file using xxd
, you can combine the -s
(seek) and -l
(length) options. Here's how you can do it:
xxd -s <start_offset> -l <length> -c <bytes_per_line> <filename>
Example:
xxd -s 119 -l 21 -c 10 test.txt