hex2bin

来自「GSM猫管理程序」· 代码 · 共 20 行

TXT
20
字号
#!/bin/gawk -f# This script reads a hex-dump and converts it to a binary file.# The hex-dump must contain one or more hexadecimal numbers separated# by spaces, colon or 0x. The lest significant end of the hex values# is on the right side. Valid examples:## echo "01 2 0x03 04:05 fa3B" | hex2bin > testfile.binBEGIN {  FS="((0x)|[ :])*";}{  for (i=1; $i!=""; i++) {    printf "%c",strtonum("0x"$i);  } }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?