ZhangZhihui's Blog  

2020年11月28日

摘要: scnzzh@ZUBT:~$ printf %d "A" bash: printf: A: invalid number 0scnzzh@ZUBT:~$ printf %d "'A" 65scnzzh@ZUBT:~$ printf "\\$(printf %o 65)" Ascnzzh@ZUBT:~ 阅读全文
posted @ 2020-11-28 15:11 ZhangZhihuiAAA 阅读(71) 评论(0) 推荐(0) 编辑
 
摘要: If you have a known octal or hexadecimal value (at script-writing time), you can just use printf: # POSIX printf '\047\n' # bash/ksh/zsh and a few oth 阅读全文
posted @ 2020-11-28 15:05 ZhangZhihuiAAA 阅读(34) 评论(0) 推荐(0) 编辑