sed -i 's/\r//' filename window下默认是 \r\n linux下是\n unix下是\r 转载于:https://www.cnblogs.com/archimedes-euler/p/9989185.html