Linux>remp_caract_spec_html.sh
.
            gest_paquet.sh

<-- LINUX

#!/bin/bash
# ce cript est a mettre dans le répertoire ~/.gnome2/nautilus-scripts, avec un chmod +x
# ensuite il suffit de faire un clic droit que le fichier à modifier puis menu scripts>remp_caract_spec_html.sh
# Script réalisé par Bertrand Perrier le 11/01/09
# 10-05-09 : Ajout de beaucoup de caractères spéciaux
# Ce script permet de remplacé les caractère accentué par le codage html
# par exemple é devient &eacute;

zenity --info --text="Veuillez attendre l'avertissement de fin du traitement du fichier\n valider pour commencer le traitement" --title="remp_caract_spec_html.sh"

sed -i "s/&/\&amp;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/\"/\&quot;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/€/\&euro;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Œ/\&#140;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/œ/\&oelig;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/«/\&laquo;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/»/\&raquo;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/µ/\&micro;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/¼/\&frac14;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/½/\&frac12;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/¾/\&frac34;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/À/\&Agrave;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Á/\&Aacute;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Â/\&Acirc;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ã/\&Atilde;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ä/\&Auml;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Å/\&Aring;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Æ/\&Aelig;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ç/\&Ccedil;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/È/\&Egrave;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/É/\&Eacute;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ê/\&Ecirc;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ë/\&Euml;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ì/\&Igrave;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Í/\&Iacute;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Î/\&Icirc;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ï/\&Iuml;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ñ/\&Ntilde;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ò/\&Ograve;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ó/\&Oacute;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ô/\&Ocirc;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Õ/\&Otilde;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ö/\&Ouml;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ø/\&Oslash;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ù/\&Ugrave;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ú/\&Uacute;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Û/\&Ucirc;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ü/\&Uuml;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ý/\&Yacute;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Þ/\&thorn;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/ß/\&szlig;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/à/\&agrave;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Á/\&aacute;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/â/\&acirc;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Ã/\&atilde;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/ä/\&auml;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/Å/\&aring;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/æ/\&aelig;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/ç/\&ccedil;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/è/\&egrave;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/é/\&eacute;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/ê/\&ecirc;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/ë/\&euml;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/î/\&icirc;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/ï/\&iuml;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/ô/\&ocirc;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/ö/\&ouml;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/÷/\&divide;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/ù/\&ugrave;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/û/\&ucirc;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/ü/\&uuml;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
sed -i "s/ÿ/\&yuml;/g" $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS

zenity --info --text="Le fichier à été modifié et enregistré avec succés" --title="remp_caract_spec_html.sh"

<-- LINUX