#! /usr/bin/env bash if [[ "$1" == "china"]]; then iconv -f GBK -t UTF8 "$2" -o "$3" elif [[ "$1" == "jp"]]; then iconv -f SHIFT-JIS -t UTF8 "$2" -o "$3" fi