Emmanuel Seyman wrote:
newfname=`echo "$1" | iconv -f UTF-8 -t ISO_8859-15`
if [ $? -ne 0 ]; then echo "Error: iconv failed. Skipping." exit fi mv $1 $newfname
That's a neat workaround. It looks like it should work for single files, but not for recursive copying I'm afraid.
http://freshmeat.net/projects/convmv/ http://www.gnu.org/software/recode/recode.html
Thanks! I'll check Convmv out. Recode looks like it does the same job as Iconv.
Björn Persson