linux printf

[root@LocalWeb01 ~]# printf '%s%s%s\n' 1 2 3 4
123
4

 

[root@LocalWeb01 ~]# printf '%s%s%s' 1 2 3 4
1234

 

[root@LocalWeb01 ~]# printf '%s%s\n' $(cat /etc/passwd)

 

 

posted @ 2014-11-10 22:56  agang_19  阅读(174)  评论(0)    收藏  举报