# replace http:// with https:// for styles and embeds find . -iname \*.html -exec sed -i 's/http:\/\/yandex.st/https:\/\/yandex.st/g' {} + find . -iname \*.html -exec sed -i 's/http:\/\/www.youtube.com/https:\/\/www.youtube.com/g' {} + # gzip all htmls find . -iname *.html -exec gzip {} +