HTML-Umlaute korrigieren

closeThis post was published more than three months ago. Please note that the information offered here may no longer be current and valid. Therefore, please inform yourself about this topic elsewhere. If there is any new information, you can also send me a comment. Thank you so much!

Mit dem folgendem Befehl kann man in allen “html”-Dokumente, im aktuellen Verzeichnis (+ Unterverzeichnissen) die HTML-Umlaute korrigieren lassen.

find . -iname "*.html" -exec sed -i 's/[äöüÄÜÖ]/\&¨/g;y/äöüÄÖÜ/aouAOU/;' {} \;
find . -iname "*.html" -exec sed -i 's/ß/\&szlig\;/g' {} \;

weiter “find”-Beispiele findest du hier:

Published by


Lars Moelleken | Ich bin root, ich darf das!

%d bloggers like this: