#!/bin/sh set -e iconv -f latin1 -t utf-8 < $1 > foo && mv foo $1