删除文件行末尾的^M符号方法

有时发现某些文件的末尾总是带有^M符号

cat /etc/hosts.allow|col -b > /etc/hosts.allow.old
原文地址:https://www.cnblogs.com/cptao/p/10913164.html