#!/bin/bash # 设置要查找的字符串 search_string="old_string" # 设置要替换成的字符串 replace_string="new_string" # 查找并替换文件内容 find . -type f -exec sed -i "s/${search_string}/${replace_string}/g" {} \;
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8