$ find . -name "*.xml" -exec cp {} /home/data/sslib/sslib/ \;
任务内容:把当前文件夹下的以“xml”为后缀名的所有文件复制到/home/data/sslib/sslib/ 目录下。
在使用-exec参数时,必须以“\;”结尾,而且之前要有一个空格,否则,系统会提示“find遗漏-exec参数”,命令将无法执行

相关文章:

  • 2022-12-23
  • 2022-01-04
  • 2021-11-09
  • 2022-01-04
  • 2022-12-23
  • 2022-02-23
猜你喜欢
  • 2022-12-23
  • 2021-08-18
  • 2021-06-05
  • 2021-08-31
  • 1970-01-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案