Totin Nurkka

 Intro

Etusivu
Toti
Yhteyslomake


 Mietteet

Utopia

 Kujeet

Anonymiteetti
Asiattomuudet
Sotkusilppu
Teksti


 Epätaide

Epätaiteen alkeet
Kuvanlaadun parannus


 Psykometria

MSI-BPD

 Skriptit

merkkisiivous.sh
m358.sh
IRC-gateway


 International

Web proxies

 merkkisiivous.sh

Etenkin sanalistoja yhdistellessä (hakiessa samaa sanaa tai sanaparia kahdelta eri listalta) on tarpeellista saada sanat suunnilleen samaan "formaattiin" ja merkkisiivous.sh on siihen tarkoitukseen laatimani edistyksellinen shell-skripti:


#!/usr/bin/env bash
#
# Skripti muuttaa tiedoston isot kirjaimet pieniksi ja suurimman osan
# erikoismerkeistä tavallisiksi aakkosiksi tai aakkospareiksi (ß ->
# ss ja æ -> ae). Myös perusskandit muutetaan.
#
# Käyttöohje:
# 1. Tee tyhjä hakemisto
# 2. Laita haluamasi tiedosto nimellä tiedosto.txt siihen
# 3. Laita myös tämä skripti sinne nimellä merkkisiivous.sh
# 4. Kirjoita chmod +x merkkisiivous.sh
# 5. Kirjoita ./merkkisiivous.sh
#
# Alkuperäisestä tiedosto.txt:stä tehdään
# tiedosto_merkkisiivous_bak.txt -niminen varmuuskopio ensin. Itse
# tiedosto.txt muuttuu sisällöltään niin, että se siivotaan
# erikoismerkeistä ja isoista kirjaimista.
#
# Tämän on kyhännyt Toti joulukuussa 2025 ja tämä on päivitetty 2.
# versio (1.1.2026), jossa merkkejä lisätty ja täysin uutena html-tagit
# mukana.
#
cp tiedosto.txt tiedosto_merkkisiivous_bak.txt
tr '[:upper:]' '[:lower:]' < tiedosto.txt > temp.txt
rm tiedosto.txt
cp temp.txt tiedosto.txt
rm temp.txt
sed -i -e 's/&#192;/a/g' tiedosto.txt
sed -i -e 's/&#193;/a/g' tiedosto.txt
sed -i -e 's/&#194;/a/g' tiedosto.txt
sed -i -e 's/&#195;/a/g' tiedosto.txt
sed -i -e 's/&#196;/a/g' tiedosto.txt
sed -i -e 's/&#197;/a/g' tiedosto.txt
sed -i -e 's/&#198;/ae/g' tiedosto.txt
sed -i -e 's/&#199;/c/g' tiedosto.txt
sed -i -e 's/&#200;/e/g' tiedosto.txt
sed -i -e 's/&#201;/e/g' tiedosto.txt
sed -i -e 's/&#202;/e/g' tiedosto.txt
sed -i -e 's/&#203;/e/g' tiedosto.txt
sed -i -e 's/&#204;/i/g' tiedosto.txt
sed -i -e 's/&#205;/i/g' tiedosto.txt
sed -i -e 's/&#206;/i/g' tiedosto.txt
sed -i -e 's/&#207;/i/g' tiedosto.txt
sed -i -e 's/&#209;/n/g' tiedosto.txt
sed -i -e 's/&#210;/o/g' tiedosto.txt
sed -i -e 's/&#211;/o/g' tiedosto.txt
sed -i -e 's/&#212;/o/g' tiedosto.txt
sed -i -e 's/&#213;/o/g' tiedosto.txt
sed -i -e 's/&#214;/o/g' tiedosto.txt
sed -i -e 's/&#216;/o/g' tiedosto.txt
sed -i -e 's/&#217;/u/g' tiedosto.txt
sed -i -e 's/&#218;/u/g' tiedosto.txt
sed -i -e 's/&#219;/u/g' tiedosto.txt
sed -i -e 's/&#220;/u/g' tiedosto.txt
sed -i -e 's/&#223;/ss/g' tiedosto.txt
sed -i -e 's/&#224;/a/g' tiedosto.txt
sed -i -e 's/&#225;/a/g' tiedosto.txt
sed -i -e 's/&#226;/a/g' tiedosto.txt
sed -i -e 's/&#227;/a/g' tiedosto.txt
sed -i -e 's/&#228;/a/g' tiedosto.txt
sed -i -e 's/&#229;/a/g' tiedosto.txt
sed -i -e 's/&#230;/ae/g' tiedosto.txt
sed -i -e 's/&#231;/c/g' tiedosto.txt
sed -i -e 's/&#232;/e/g' tiedosto.txt
sed -i -e 's/&#233;/e/g' tiedosto.txt
sed -i -e 's/&#234;/e/g' tiedosto.txt
sed -i -e 's/&#235;/e/g' tiedosto.txt
sed -i -e 's/&#236;/i/g' tiedosto.txt
sed -i -e 's/&#237;/i/g' tiedosto.txt
sed -i -e 's/&#238;/i/g' tiedosto.txt
sed -i -e 's/&#239;/i/g' tiedosto.txt
sed -i -e 's/&#241;/n/g' tiedosto.txt
sed -i -e 's/&#242;/o/g' tiedosto.txt
sed -i -e 's/&#243;/o/g' tiedosto.txt
sed -i -e 's/&#244;/o/g' tiedosto.txt
sed -i -e 's/&#245;/o/g' tiedosto.txt
sed -i -e 's/&#246;/o/g' tiedosto.txt
sed -i -e 's/&#248;/o/g' tiedosto.txt
sed -i -e 's/&#249;/u/g' tiedosto.txt
sed -i -e 's/&#250;/u/g' tiedosto.txt
sed -i -e 's/&#251;/u/g' tiedosto.txt
sed -i -e 's/&#252;/u/g' tiedosto.txt
sed -i -e 's/&Aacute;/a/g' tiedosto.txt
sed -i -e 's/&aacute;/a/g' tiedosto.txt
sed -i -e 's/&Acirc;/a/g' tiedosto.txt
sed -i -e 's/&acirc;/a/g' tiedosto.txt
sed -i -e 's/&Aelig;/ae/g' tiedosto.txt
sed -i -e 's/&aelig;/ae/g' tiedosto.txt
sed -i -e 's/&Agrave;/a/g' tiedosto.txt
sed -i -e 's/&agrave;/a/g' tiedosto.txt
sed -i -e 's/&Aring;/a/g' tiedosto.txt
sed -i -e 's/&aring;/a/g' tiedosto.txt
sed -i -e 's/&Atilde;/a/g' tiedosto.txt
sed -i -e 's/&atilde;/a/g' tiedosto.txt
sed -i -e 's/&Auml;/a/g' tiedosto.txt
sed -i -e 's/&auml;/a/g' tiedosto.txt
sed -i -e 's/&Ccedil;/c/g' tiedosto.txt
sed -i -e 's/&ccedil;/c/g' tiedosto.txt
sed -i -e 's/&Eacute;/e/g' tiedosto.txt
sed -i -e 's/&eacute;/e/g' tiedosto.txt
sed -i -e 's/&Ecirc;/e/g' tiedosto.txt
sed -i -e 's/&ecirc;/e/g' tiedosto.txt
sed -i -e 's/&Egrave;/e/g' tiedosto.txt
sed -i -e 's/&egrave;/e/g' tiedosto.txt
sed -i -e 's/&Euml;/e/g' tiedosto.txt
sed -i -e 's/&euml;/e/g' tiedosto.txt
sed -i -e 's/&Iacute;/i/g' tiedosto.txt
sed -i -e 's/&iacute;/i/g' tiedosto.txt
sed -i -e 's/&Icirc;/i/g' tiedosto.txt
sed -i -e 's/&icirc;/i/g' tiedosto.txt
sed -i -e 's/&Igrave;/i/g' tiedosto.txt
sed -i -e 's/&igrave;/i/g' tiedosto.txt
sed -i -e 's/&Iuml;/i/g' tiedosto.txt
sed -i -e 's/&iuml;/i/g' tiedosto.txt
sed -i -e 's/&Ntilde;/n/g' tiedosto.txt
sed -i -e 's/&ntilde;/n/g' tiedosto.txt
sed -i -e 's/&Oacute;/o/g' tiedosto.txt
sed -i -e 's/&oacute;/o/g' tiedosto.txt
sed -i -e 's/&Ocirc;/o/g' tiedosto.txt
sed -i -e 's/&ocirc;/o/g' tiedosto.txt
sed -i -e 's/&Ograve;/o/g' tiedosto.txt
sed -i -e 's/&ograve;/o/g' tiedosto.txt
sed -i -e 's/&Oslash;/o/g' tiedosto.txt
sed -i -e 's/&oslash;/o/g' tiedosto.txt
sed -i -e 's/&Otilde;/o/g' tiedosto.txt
sed -i -e 's/&otilde;/o/g' tiedosto.txt
sed -i -e 's/&Ouml;/o/g' tiedosto.txt
sed -i -e 's/&ouml;/o/g' tiedosto.txt
sed -i -e 's/&szlig;/ss/g' tiedosto.txt
sed -i -e 's/&Uacute;/u/g' tiedosto.txt
sed -i -e 's/&uacute;/u/g' tiedosto.txt
sed -i -e 's/&Ucirc;/u/g' tiedosto.txt
sed -i -e 's/&ucirc;/u/g' tiedosto.txt
sed -i -e 's/&Ugrave;/u/g' tiedosto.txt
sed -i -e 's/&ugrave;/u/g' tiedosto.txt
sed -i -e 's/&Uuml;/u/g' tiedosto.txt
sed -i -e 's/&uuml;/u/g' tiedosto.txt
sed -i -e 's/Á/a/g' tiedosto.txt
sed -i -e 's/á/a/g' tiedosto.txt
sed -i -e 's/À/a/g' tiedosto.txt
sed -i -e 's/à/a/g' tiedosto.txt
sed -i -e 's/Â/a/g' tiedosto.txt
sed -i -e 's/â/a/g' tiedosto.txt
sed -i -e 's/Å/a/g' tiedosto.txt
sed -i -e 's/å/a/g' tiedosto.txt
sed -i -e 's/Ä/a/g' tiedosto.txt
sed -i -e 's/ä/a/g' tiedosto.txt
sed -i -e 's/ã/a/g' tiedosto.txt
sed -i -e 's/Ã/a/g' tiedosto.txt
sed -i -e 's/æ/ae/g' tiedosto.txt
sed -i -e 's/Æ/ae/g' tiedosto.txt
sed -i -e 's/Ć/c/g' tiedosto.txt
sed -i -e 's/ć/c/g' tiedosto.txt
sed -i -e 's/Č/c/g' tiedosto.txt
sed -i -e 's/č/c/g' tiedosto.txt
sed -i -e 's/Ç/c/g' tiedosto.txt
sed -i -e 's/ç/c/g' tiedosto.txt
sed -i -e 's/đ/d/g' tiedosto.txt
sed -i -e 's/ð/d/g' tiedosto.txt
sed -i -e 's/É/e/g' tiedosto.txt
sed -i -e 's/é/e/g' tiedosto.txt
sed -i -e 's/è/e/g' tiedosto.txt
sed -i -e 's/È/e/g' tiedosto.txt
sed -i -e 's/ê/e/g' tiedosto.txt
sed -i -e 's/Ê/e/g' tiedosto.txt
sed -i -e 's/ě/e/g' tiedosto.txt
sed -i -e 's/ë/e/g' tiedosto.txt
sed -i -e 's/Ë/e/g' tiedosto.txt
sed -i -e 's/ė/e/g' tiedosto.txt
sed -i -e 's/ğ/g/g' tiedosto.txt
sed -i -e 's/í/i/g' tiedosto.txt
sed -i -e 's/Í/i/g' tiedosto.txt
sed -i -e 's/Ì/i/g' tiedosto.txt
sed -i -e 's/ì/i/g' tiedosto.txt
sed -i -e 's/Î/i/g' tiedosto.txt
sed -i -e 's/î/i/g' tiedosto.txt
sed -i -e 's/ï/i/g' tiedosto.txt
sed -i -e 's/Ï/i/g' tiedosto.txt
sed -i -e 's/ı/i/g' tiedosto.txt
sed -i -e 's/ł/l/g' tiedosto.txt
sed -i -e 's/ń/n/g' tiedosto.txt
sed -i -e 's/ň/n/g' tiedosto.txt
sed -i -e 's/ñ/n/g' tiedosto.txt
sed -i -e 's/Ñ/n/g' tiedosto.txt
sed -i -e 's/ó/o/g' tiedosto.txt
sed -i -e 's/Ó/o/g' tiedosto.txt
sed -i -e 's/ò/o/g' tiedosto.txt
sed -i -e 's/Ò/o/g' tiedosto.txt
sed -i -e 's/ô/o/g' tiedosto.txt
sed -i -e 's/Ô/o/g' tiedosto.txt
sed -i -e 's/Ö/o/g' tiedosto.txt
sed -i -e 's/ö/o/g' tiedosto.txt
sed -i -e 's/ő/o/g' tiedosto.txt
sed -i -e 's/õ/o/g' tiedosto.txt
sed -i -e 's/Õ/o/g' tiedosto.txt
sed -i -e 's/Ø/o/g' tiedosto.txt
sed -i -e 's/ø/o/g' tiedosto.txt
sed -i -e 's/ř/r/g' tiedosto.txt
sed -i -e 's/š/s/g' tiedosto.txt
sed -i -e 's/Š/s/g' tiedosto.txt
sed -i -e 's/Ş/s/g' tiedosto.txt
sed -i -e 's/ß/ss/g' tiedosto.txt
sed -i -e 's/Ú/u/g' tiedosto.txt
sed -i -e 's/ú/u/g' tiedosto.txt
sed -i -e 's/ù/u/g' tiedosto.txt
sed -i -e 's/Ù/u/g' tiedosto.txt
sed -i -e 's/Û/u/g' tiedosto.txt
sed -i -e 's/û/u/g' tiedosto.txt
sed -i -e 's/Ü/u/g' tiedosto.txt
sed -i -e 's/ü/u/g' tiedosto.txt
sed -i -e 's/ū/u/g' tiedosto.txt
sed -i -e 's/ÿ/y/g' tiedosto.txt
sed -i -e 's/Ž/z/g' tiedosto.txt
sed -i -e 's/ž/z/g' tiedosto.txt
sed -i -e 's/ӓ/a/g' tiedosto.txt
sed -i -e 's/ӧ/o/g' tiedosto.txt