Parent directory
acceder au document
#! /bin/bash


tmp='.iconv-tmp'

for file in *.php *.html *.txt *.js *.css
do

echo -n $file
if [ -f $file ]
then
echo ' file'
if iconv -c -f utf8 -t ISO-8859-15 $file 1> $tmp
then
echo 'ok'
else
echo ':('
fi
cat $tmp > $file
else
echo ' repertoire'
fi

done

acceder au document