#!/bin/sh

for i in `ls *.txt`; do
    dos2unix $i
    iconv -f GB18030 -t UTF-8 < $i > "$i.utf8"
    mv "$i.utf8" $i
done
