Convert utf-16 to ascii ( Powershell creates text files in a format which confuses Unix scripts ) cat yes_login.txt | iconv -f UTF-16 -t ASCII > yes_ascii.txt