#! /bin/sh set -e if ! echo "$LC_CTYPE" | grep -Fiq utf-8; then echo "This script requires UTF-8 locale" 1>&2 exit 1 fi . get_encodings for dir in "${@:-.}"; do cleanup-filenames-recursive.sh "$dir" && recode-filenames-recursive.py -f "$from_encoding" -t "$to_encoding" \ "$dir" || exit 1 done