SED Replace - Linux
Replace HTTP with HTTPS (in all *.html files)
sed -i 's|http://sub.example.com|https://sub.example.com|g' *.html
find . -name "*.html" -exec sed -i 's|http://sub.example.com|https://sub.example.com|g' {} \;
Replace HTTP with HTTPS (in all *.html files)
sed -i 's|http://sub.example.com|https://sub.example.com|g' *.html
find . -name "*.html" -exec sed -i 's|http://sub.example.com|https://sub.example.com|g' {} \;