详细讲解Linux shell中的printf的用法


当前第2页 返回上一页

1

2

3

4

5

6

7

8

9

10

11

12

[root@localhost ~]# printf %s 1 2 3 4 5 6

123456[root@localhost ~]# printf %s %s %s 1 2 3 4 5 6

%s%s123456[root@localhost ~]# printf '%s %s %s' 1 2 3 4 5 6

1 2 34 5 6[root@localhost ~]# printf '%s\t%s\t%s\n' 1 2 3 4 5 6

1 2 3

4 5 6

[root@localhost ~]# printf '%s' $(cat student.txt)

1furongF852fengjF603cangF70[root@localhost ~]#

[root@localhost ~]# printf '%s\t%s\t%s\t%s\n' $(cat student.txt)

1 furong F 85

2 fengj F 60

3 cang F 70

以上就是详细讲解Linux shell中的printf的用法的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

linux如何查看主机名

linux数据库乱码解决方法

如何使用describezones查询一个地域下的可用区

做开发用什么linux发行版

chmod用法是什么?

linux .权限不够怎么办

linux下的抓包tcpdump

怎么查看linux的硬盘

在控制台上如何将弹性网卡附加到时实例上

linux开发需要学什么?

更多相关阅读请进入《shell》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...