find all same file and replace then

  |   源代码

在linux下查找同名文件,并进行替换的一小点总结,find命令超过我的预期。

find ${WORK_HOME} -name "${filename}" -type f | xargs -i cp -rf ${filename} {}
Comments powered by Disqus
Share