陈奇网络工作室

云计算学习课程简介资料:参数发布Xargs

云计算

今天我给大家看几个云计算学习课程的概要资料。 本文是关于参数发布Xargs的学习笔记资料,希望对大家有帮助:

=========================================================================================

awksedgrepsortuniqlessmorexargs

xargs: ls cp rm

情况1

[ root @ localhost~] # touch/home/file {1.5}

[root@localhost ~]# vim files.txt

/home/file1

/home/file2

/home/file3

/home/file4

/home/file5

[ root @ localhost~] # cat files.txt|ls-l

[ root @ localhost~] # cat files.txt|RM-rvf

连续。

[ root @ localhost~] # cat files.txt|xargs ls-l

- rw-rr. 1根0mar1110:35/home/file1

- rw-rr. 1根0mar1110:35/home/file2

- rw-rr. 1根0mar1110:35/home/file4

- rw-rr. 1根0mar1110:35/home/file5

[ root @ localhost~] # cat files.txt|xargs RM-rvf

已移除‘/home/file 1’

已移除‘/home/file 2’

已移除‘/home/file 4’

已移除‘/home/file 5’

情况2

[ root @ localhost~] # touch/home/file {1.5}

[ root @ localhost~] # cat files.txt|xargs-I { } ls-l { }

- rw-rr. 1根0mar1110:40/home/file1

- rw-rr. 1根0mar1110:40/home/file2

- rw-rr. 1根0mar1110:40/home/file4

- rw-rr. 1根0mar1110:40/home/file5

[ root @ localhost~] # cat files.txt|xargs-I { } CP-rvf { }/tmp

‘/home/file 1’-‘/tmp/file 1’

‘/home/file 2’-‘/tmp/file 2’

‘/home/file 4’-‘/tmp/file 4’

‘/home/file 5’-‘/tmp/file 5’

[ root @ localhost~] # cat files.txt|xargs-iyan GCP-rvf yang/var/tmp

‘/home/file 1’-‘/var/tmp/file 1’

‘/home/file 2’-‘/var/tmp/file 2’

‘/home/file 4’-‘/var/tmp/file 4’

‘/home/file 5’-‘/var/tmp/file 5’

情况3

[ root @ localhost~] # find/etc-iname & amp; #039; *ifCFG*& #039; |Xargs-I{}CP-RF{}/tmp

详情请访问云服务器、域名注册、虚拟主机的问题,请访问西部数码代理商官方网站: www.chenqinet.cn

相关推荐

后台-系统设置-扩展变量-手机广告位-内容页底部广告位3