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

📅  最后修改于: 2022-03-11 14:50:48.541000             🧑  作者: 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}'