find找到文件并且替换

find /data/ -type f -name "cmd.sh" -exec cp /tmp/cmd.sh {} \;

在/data/目录下找到cmd.sh文件,把/tmp/cmd.sh文件,cp替换  

posted @ 2022-04-12 19:45  lucky_tomato  阅读(93)  评论(0编辑  收藏  举报