xxd

make a hexdump or do the reverse.

copy
15
0
xxd -s 0x30 file

source | details |

copy
5
0
echo "010000: 41" | xxd -r -s -0x10000 > file

source | details |

copy
4
0
xxd -s +seek

source | details |

copy
2
0
xxd -l 120 -ps -c 20 xxd.1

source | details |

copy
3
0
xxd -r -i

source | details |

copy
2
0
xxd -a -c 12 file

source | details |

copy
2
0
sh -c "dd of=plain_snippet bs=1k count=1; xxd -s +128 > hex_snippet" < file

source | details |

copy
2
0
echo "0000037: 3574 68" | xxd -r - xxd.1

source | details |

copy
1
0
xxd -s 0x36 -l 13 -c 13 xxd.1

source | details |

copy
1
0
xxd -s -0x30 file

source | details |

copy
1
0
xxd input_file | xxd -r -s 100 > output_file

source | details |

copy
1
0
sh -c "dd of=plain_snippet bs=1k count=1; xxd -s +-768 > hex_snippet" < file

source | details |

copy
0
0
xxd -i file

source | details |

copy
0
0
xxd -s seek,

source | details |

copy
1
0
sh -c "cat > plain_copy; xxd -s 0 > hex_copy" < file

source | details |

copy
0
0
xxd -l 120 -c 12 xxd.1

source | details |

copy
0
0
!!xxd -r

source | details |

copy
0
0
xxd -i < file

source | details |