我正在尝试获取二进制文件的经过空格修剪的纯十六进制转储
命令:
aes.key.hex=$(xxd -p /tmp/aes.key | tr -d '[:space:]')失败:
bash: aes.key.hex=097b7be16b52de77437882889fc96a27132217867970b014016f5de3e6864b37: command not found这是怎么回事?我能够成功地执行xxd -p /tmp/aes.key,所以罪魁祸首看起来像是修剪所有空格tr -d '[:space:]'的bash命令
发布于 2020-03-13 09:00:57
句号是问题所在。请使用下划线。变量名的格式必须为[a-zA-Z_][a-zA-Z0-9_]* (正则表达式)。
https://stackoverflow.com/questions/60662490
复制相似问题