方式一

# yum install dos2unix.x86_64
# dos2unix file

方式二

查看样式:

:set ff?        //dos/unix

设置:

:set fileformat=unix

方式三

  1. :%s/^M//g

    其中^M 必须是同时按 Ctrl+V+M ,表示回车
  2. 使用tr

    tr -d “\015” test.txt

最新文章

  1. 最大半连通子图 bzoj 1093
  2. XVI Open Cup named after E.V. Pankratiev. GP of Siberia
  3. linux 下 TeXmacs 作 Mathematica 10 的前端
  4. backbone & django csrf_token的问题
  5. C#7.0中有新特性
  6. android StringBuffer类的使用
  7. UVa 1225 Digit Counting
  8. MongoDB在windows下安装配置
  9. com和dll(一)
  10. css基础内容之background
  11. sphinx安装
  12. 微信小程序(六) 文章详情静态页面detail
  13. jquery validate 校验时,如果有type=hiddien
  14. javascript OOP实例—探测器
  15. [Java] zjdbcping:JDBC数据库连接测试工具
  16. HTTPS 怎样保证数据传输的安全性
  17. MVC知识点记录
  18. sql server2016里面的json功能 - 转
  19. 图->存储结构->十字链表
  20. 算法笔记-PHP实现栈的操作

热门文章

  1. [20190909]完善vim的bccacl插件.txt
  2. emacs speedbar功能介绍
  3. [Go] gocron源码阅读-go语言中数组和切片的字面值初始化语法
  4. [PHP] 现代化PHP之路:composer的安装和升级
  5. 2、mongoDB的基本操作
  6. client-go向controller进发---code-generator实现
  7. drf扩展知识点总结视图
  8. [C4W3] Convolutional Neural Networks - Object detection
  9. Linux上error while loading shared libraries问题解决方法
  10. vue项目搭建介绍01