bin文件转hex的方法 hexdump -e ’16/2 “%02x” “hh” ’ a. txt 这个意思是2个字节一组,16个组插入hh hexdump -e '1/4 “%02x” “\n” ’ s. txt 这样产生了4个字节一行