LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   how to perform a hexdump using dd from start point to end point (https://www.linuxquestions.org/questions/linux-hardware-18/how-to-perform-a-hexdump-using-dd-from-start-point-to-end-point-938672/)

jao_madn 04-07-2012 06:00 PM

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

H_TeXMeX_H 04-08-2012 11:08 AM

You don't need dd to do that:

man hexdump
Code:

    -n length  Interpret only length bytes of input.
    -s offset  Skip offset bytes from the beginning of the input.  By
                default, offset is interpreted as a decimal number.  With a
                leading 0x or 0X, offset is interpreted as a hexadecimal num-
                ber, otherwise, with a leading 0, offset is interpreted as an
                octal number.  Appending the character b, k, or m to offset
                causes it to be interpreted as a multiple of 512, 1024, or
                1048576, respectively.



All times are GMT -5. The time now is 04:14 AM.