ubuntu, 在命令行,可以使用

sed
命令来替换文件夹内的字符串:

在文件夹内替换字符串http://abc.com为https://abc.com

find /path/to/folder -<span style="color:#f5ab35">type</span> f -<span style="color:#f5ab35">exec</span> sed -i <span style="color:#abe338">&#39;s|http://abc.com|https://abc.com|g&#39;</span> {} +

/path/to/folder
替换为您要进行替换操作的文件夹,例如

find . -type f -exec sed -i 's|http://xxx|https://xxx|g' {} +