ubuntu sed命令来替换文件夹内的字符串
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">'s|http://abc.com|https://abc.com|g'</span> {} +
/path/to/folder
find . -type f -exec sed -i 's|http://xxx|https://xxx|g' {} +