Skip to content

Instantly share code, notes, and snippets.

Created Apr 8, 2020
What would you like to do?
Like hexdump, but with base 2. Bit & byte order is little-endian.
#! /bin/sh
for i in $( (echo 'ibase=16;obase=2;'; hexdump -v -e '/1 "%02X\n"' $@) | bc); do \
printf '%08i\n' $i | rev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment