wordpress 博客国内访问卡解决

作者: admin 分类: 技巧分享 发布时间: 2015-05-18 11:11

Linux

for f in $(grep -rl ajax.googleapis .) ; 
do 
sed -i 's/ajax.googleapis/ajax.useso/g' $f; 
done;
for f in $(grep -rl fonts.googleapis .) ;
 do sed -i 's/fonts.googleapis/fonts.useso/g' $f; 
done

windows(需grep 和sed 支持):

for /f %f in ('grep -rl ajax.googleapis .') 
do 
sed -i "s/ajax.googleapis/ajax.useso/g" %f
for /f %f in ('grep -rl fonts.googleapis .') 
do 
sed -i "s/fonts.googleapis/fonts.useso/g" %f

发表评论

标签云