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

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

 

显示文件系统信息

相关文章:

  • 2021-07-23
  • 2021-11-03
  • 2021-12-07
  • 2021-05-23
  • 2022-03-09
  • 2021-11-09
  • 2022-01-23
  • 2021-07-08
猜你喜欢
  • 2022-01-11
  • 2022-01-25
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-08-08
相关资源
相似解决方案