hextools

hextools repository
git clone git://mcdim.xyz/hextools.git
Log | Files | Refs | README

bin2hex (132B)


      1 #!/bin/sh
      2 
      3 if [ "$#" -eq 1 ]; then
      4 	unbin $1 | hex
      5 	exit 0;
      6 fi
      7 
      8 while read bin; do
      9 	echo -n "$bin" | unbin | hex;
     10 done < /dev/stdin