Follow

Breaking an i32 into four bytes.

printf "0: %.8x" $int | xxd -r -g0 >>file

Learn printf kids, then you won't need to steal 's from like your old man does.

Credit:

stackoverflow.com/questions/99

Sign in to participate in the conversation
Doma Social

Mastodon server of https://doma.dev.