How to perform a hexdump using dd from start point to end point?

hi,

I would like to ask or is it possible to dump a hex using dd from starting point to end point just like the "xxd -s 512 -l 512 <bin file>"

I know the redirect hexdump -C but i can't figure it out the combination options of dd.

Hope someone can share their knowledge..

Thanks in advance

Hi jao_madn,

Is the output from this pipeline what your looking for?

dd if=/your/binfile 2>/dev/null | hexdump -C -s 512 -n 512
dd if=/your/binfile bs=512 skip=1 count=1 2>/dev/null | hexdump -C

Why not:

hexdump -C -s 512 -n 512 binfile