#infile.ans ANSI=$1 #outfile.txt ASCII=$2 piconv -f CP437 -t UTF-8 < $1 > $2