windows 的 doc 文件 是以 “/n /r” 换行的
linux 的文件是以 “/n” 换行的
为了让这两种文件能够兼容使用 需要 转化一下,一下 todos 和 fromdos 就能完成这个任务
$ sudo apt-get install tofrodos
上述命令 安装了 todos 和 fromdos 两个程序
todos 相当于 unix2dos
fromdos 相当 doc2unix
linux 的文件是以 “/n” 换行的
为了让这两种文件能够兼容使用 需要 转化一下,一下 todos 和 fromdos 就能完成这个任务
$ sudo apt-get install tofrodos
上述命令 安装了 todos 和 fromdos 两个程序
todos 相当于 unix2dos
fromdos 相当 doc2unix