[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 131-color mode



In case anyone wants to know how I converted the binary to hex format
without going totally crazy, i used "groovy":

groovy -e "i=0;(new
File('binaryFile')).eachByte{b|print((i++%80==0?'\n'+Integer.toHexString(i-1)+':':'
') + Integer.toHexString(b&255).padLeft(2,'0'));}"

Sure, you could do this with some other method (sed/awk, perl, etc) but
it's what I had handy and I like java.