#!/bin/sh set -eu LANG=C export LANG find . -name '*[€-ÿ]*'\ |while read FILE do mv "$FILE" "`echo "$FILE"|recode latin1..utf8`" done find . -type f -name 00INDEX -print0|LANG=C xargs -0 grep -lE '[€-ÿ]'\ |tr '\012' '\0'|xargs -0 recode latin1..utf8