descriptionCreate and parse binary data from the command line
homepage URLhttp://simonkagstrom.livejournal.com/
ownersimon.kagstrom@gmail.com
last changeSat, 9 Feb 2008 13:27:13 +0000 (9 14:27 +0100)
content tags
add:
readme
tobin and binto is a pair of utilities to produce and parse binary data from the command line, mostly compatible with the Python "struct" module. Example:
./tobin ">bH6s" 4 0x70ff hejsan | ./binto ">bH6s"
This example produces binary output in big-endian order with a byte, an unsigned 16-bit word and a 6-byte string to stdout. The binto tool then parses this ouput and produces a human-readable output on stdout.
shortlog
2008-02-09 Simon KagstromMessagemaster
2008-02-09 Simon KagstromImplemented number prefix for x
2008-02-04 Simon KagstromCorrected handling of unsigned values
2008-02-03 Simon KagstromFixed bug with binary input
2008-02-03 Simon KagstromAdded
heads
16 years ago master