原因是在window环境编辑会有特殊字符,解决办法:sed -i'' "s/\r//" file_name 转载于:https://www.cnblogs.com/duanxingxing/p/6100882.html