linux 中printf的使用

linux 中printf的使用
printf "helloworld "
printf 中换行必须加上


printf '%d %s ' 1 "abc"
chenxy@ubuntu:~/linux$ a=2
chenxy@ubuntu:~/linux$ printf 'a is %s ' $a
a is 2

使用printf结合变量的使用

原文地址:https://www.cnblogs.com/chenxiaoyong/p/6230874.html