Bash : Get the bytes at offset for length -
i wondering how retrieve bytes files given offset , length.
i came following line : hexdump -n 4 -s 0x11c myfile
i following : not enough, don't need offset.
000011c 00 00 8c d0
second try :
hexdump -n 4 -s 0x11c -e '"%x\n"' myfile
i following : better wrong endianness.
d08c0000
so how can ? know parse sed, isn't there «cleaner» solution that ?
hexdump -n 4 -s 0x11c -e '4/1 "%x " "\n"' myfile
(my version of hexdump not produce one-byte hex output in first example. did use other command option?)
Comments
Post a Comment