linux 中printf的使用
linux 中printf的使用
printf "helloworld\n"
printf 中换行必须加上\n
printf '%d %s\n' 1 "abc"
chenxy@ubuntu:~/linux$ a=2
chenxy@ubuntu:~/linux$ printf 'a is %s\n' $a
a is 2
使用printf结合变量的使用
posted on 2016-12-28 20:55 chenxiaoyong 阅读(3233) 评论(0) 编辑 收藏 举报