使用sed删除文件中的中文字符 LANG=C sed -r "s/[\x81-\xFE][\x40-\xFE]+//g" test.txt LANG=C sed -r "s/[\x81-\xFE]+//g" test.txt