📜  命令转换为 asci 代码 bash - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:49.792000             🧑  作者: Mango

代码示例1
#First way to convert to ascii code
printf "\x$(printf %x 65)"
#Second way to convert to ascii code
set $(printf %x 65)
printf "\x$1"
#Third way to convert to ascii code
awk 'BEGIN{printf "%c", 65}'