SED Replace - Linux

Submitted by Gast (nicht überprüft) on Do, 01/21/2021 - 03:48

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' {} \;

 

Neuen Kommentar schreiben

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.