tech:notes_hexa
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:notes_hexa [2025/10/10 09:26] – Jean-Baptiste | tech:notes_hexa [2026/10/27 15:50] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes Hexa | ||
| + | |||
| + | Voir l' | ||
| + | * http:// | ||
| + | * https:// | ||
| + | |||
| + | Exemple | ||
| + | ~~~bash | ||
| + | hexdump -C plop.bin | ||
| + | xxd plop.bin | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | printf ' | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | Diff | ||
| + | ~~~ | ||
| + | $ diff <(xxd Bootable_NoEmulation.img) <(xxd Bootable_NoEmulation_1.img) | ||
| + | 1c1 | ||
| + | < 00000000: faea 407c 0000 9090 1000 0000 e20a 0000 ..@|............ | ||
| + | --- | ||
| + | > 00000000: faea 407c 0000 9090 1000 0000 e800 0000 ..@|............ | ||
| + | |||
| + | #colordiff -y <(xxd Bootable_NoEmulation.img) <(xxd Bootable_NoEmulation_1.img) | ||
| + | |||
| + | $ cmp -b Bootable_NoEmulation.img Bootable_NoEmulation_1.img | ||
| + | Bootable_NoEmulation.img Bootable_NoEmulation_1.img differ: byte 13, line 1 is 342 M-b 350 M-h | ||
| + | |||
| + | $ cmp -l Bootable_NoEmulation.img Bootable_NoEmulation_1.img | ||
| + | 13 342 350 | ||
| + | 14 12 0 | ||
| + | |||
| + | $ cmp -bl Bootable_NoEmulation.img Bootable_NoEmulation_1.img | ||
| + | 13 342 M-b 350 M-h | ||
| + | 14 12 ^J 0 ^@ | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ~~~ | ||
| + | $ echo -n " | ||
| + | 0000000 636f | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | $ echo -n " | ||
| + | 00000000 | ||
| + | 00000002 | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | $ echo -n " | ||
| + | 0000000: 636f co | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | $ printf " | ||
| + | co | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | $ echo " | ||
| + | co | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Fonctions | ||
| + | |||
| + | ~~~bash | ||
| + | |||
| + | HexToAscii() { | ||
| + | echo " | ||
| + | } | ||
| + | |||
| + | AsciiToHex() { | ||
| + | echo -n " | ||
| + | } | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Autres | ||
| + | |||
| + | ~~~Nash | ||
| + | wxHexEditor --compare file1 file2 | ||
| + | ~~~ | ||
