Hola. Necesito ayuda con un script que encontré para modificar el encoding de archivos con formato ISO-8859-1 por UTF-8 en un sitio con php
El script es el siguiente pero me da error. Además quisiera poder ver que está haciendo tipo verbose de algunos comandos. #!/bin/sh # Use this script to change the default encoding # from ISO-8859-1 to other that you want. # Run it on the PHPReports root directory if [ ! -n "$1" ] then echo Please inform the encoding to use! exit 1 fi temp=/tmp/$$.phprpt export default='ISO-8859-1' for file in `fgrep -Ril $default ` do echo converting $file ... sed s/$default/$1/ $file > $temp cp $temp $file done if [ -f $temp ] then rm $temp fi saludos miguel ------------ próxima parte ------------ Se ha borrado un adjunto en formato HTML... URL: <http://listas.jovenclub.cu/pipermail/gutl-l/attachments/20120111/6beddc73/attachment.htm> ______________________________________________________________________ Lista de correos del Grupo de Usuarios de Tecnologías Libres de Cuba. Gutl-l@jovenclub.cu https://listas.jovenclub.cu/cgi-bin/mailman/listinfo/gutl-l