linux 复制一个文件到多个目录下

作者:

在

前面是要复制到达的目录,多个请用空格间隔,xargs  后面是从哪里复制

echo /www/wwwroot/www.folddeals.com/index.php | xargs -n 1 cp -v /www/wwwroot/m1index.php

echo /www/wwwroot/testm2.w3cwang.com/index.php /www/wwwroot/testm2.yitahome.com/index.php /www/wwwroot/testm2.oedro.com/index.php | xargs -n 1 cp -v /www/wwwroot/m2index.php

 

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注