Centos7 替换目录及其子目录下所有文件的内容

find /usr/local/test/ -type f -exec sed -i -e "s/60000/10000/g" {} \;

将/usr/local/test/目录下所有文件中的60000改为10000

posted @ 2023-03-23 15:40  缤纷世界  阅读(137)  评论(0编辑  收藏  举报