By Gast (nicht überprüft), 21 Januar, 2021 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' {} \;
By Gast (nicht überprüft), 7 Dezember, 2020 sed replace string (w. regex) in text / sql file Replace barlin and burlin with berlin in db_2021.sql: sed -i -E "s/([a-z0-9_\-]+)\.(barlin|burlin)/\1.berlin/g" db_2021.sql