美文网首页
去掉文件中的^M

去掉文件中的^M

作者: 超__越 | 来源:发表于2019-04-02 15:30 被阅读0次

1、我们有时候会发现文件中多了 ^M 这个符号

多半是我们在windows 下操作文件后面直接放到 linux 系统当中

可以用如下方法解决

a  ct.template 多了 ^M 这个符号

在linux 下

用如下命令操作这个文件:

cat ct.template | tr -d "\r" > ct.template1

在用命令查看

cat -A ct.template1

2 搞定。

相关文章

网友评论

      本文标题:去掉文件中的^M

      本文链接:https://www.haomeiwen.com/subject/gnsgbqtx.html