码迷,mamicode.com
首页 > 其他好文 > 详细

10-xargs 简明笔记

时间:2016-12-17 14:11:18      阅读:129      评论:0      收藏:0      [点我收藏+]

标签:nbsp   rgs   person   root   获取   ks.cfg   bsp   笔记   标准   

从标准你输入获取内容创建和执行命令

xargs     [options

 

选项

-n                                               数字,分组

 

示例

xargs 

1 [root@28 ~]# ls |xargs 
2 anaconda-ks.cfg dir dir3 dir5 file file3 file5 install.log install.log.syslog oldboy person.txt umask_test umask_test.txt

 

显示文件信息

 

xargs -n

 1 [root@28 ~]# ls |xargs  -n 5
 2 anaconda-ks.cfg dir dir3 dir5 file
 3 file3 file5 install.log install.log.syslog oldboy
 4 person.txt umask_test umask_test.txt
 5 [root@28 ~]# ls |xargs  -n 3
 6 anaconda-ks.cfg dir dir3
 7 dir5 file file3
 8 file5 install.log install.log.syslog
 9 oldboy person.txt umask_test
10 umask_test.txt

 

显示文件系统信息

10-xargs 简明笔记

标签:nbsp   rgs   person   root   获取   ks.cfg   bsp   笔记   标准   

原文地址:http://www.cnblogs.com/luoahong/p/6189504.html

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!