find . -name "*" |xargs cp ????

这里 xargs cp 怎么区分cp源 和 cp目的
例如:想把 查询到的文件 都copy到/home/users/中去
    find . -name "*" | xargs cp /home/users/


find . -name "*" | xargs -i cp {} /home/users/

-I 必须指定替换字符 -i 是否指定替换字符-可选
举例:
find . | xargs -I {} cp {} $D_PATH

find . | xargs -i cp {} $D_PATH

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-27
  • 2021-08-07
  • 2021-05-21
  • 2022-12-23
猜你喜欢
  • 2022-01-18
  • 2022-12-23
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
相关资源
相似解决方案