摘要: [shell] echo vs printf 在bash里有以下区别 $ str= " 1 2 3 x" $ echo "$str" | xxd 00000000: 2020 3120 3220 0a20 3320 780a 1 2 . 3 x. $ printf "%s\n" $str 1 2 3 x $ printf "%s\n" "$st 阅读全文
posted @ 2024-01-10 15:18 亦幻 阅读(3) 评论(1) 推荐(0) 编辑