用来替换当前目录文件夹及子文件夹中所有文件中的https为http.
sed -i "s#https#http#g" `grep http -rl ./`说明:
-i 表示inplace edit,就地修改文件
-r 表示搜索子目录
-l 表示输出匹配的文件名
用来替换当前目录文件夹及子文件夹中所有文件中的https为http.
sed -i "s#https#http#g" `grep http -rl ./`说明:
-i 表示inplace edit,就地修改文件
-r 表示搜索子目录
-l 表示输出匹配的文件名