かれは開発室 - Kareha Hub
shell
16進数を扱う
10進数を16進数にする。
$ printf "%x\n" 255 ff
16進数を10進数にする。
$ printf "%d\n" 0xff 255