您的位置:首页 > 运维架构 > Linux

ubuntu上,文件换行符的转换命令

2014-05-06 15:51 369 查看
 Ubuntu下使用tofrodos进行换行符的转换 , 下面就说一下它的安装和使用。

  (1)安装tofrodos

  sudo apt-get install tofrodos

  实际上它安装了两个工具:todos(相当于unix2dos),和fromdos(相当于dos2unix)

        (2)使用

  todos Hello.txt (即unix2dos Hello.txt)

  fromdos Hello.txt (即dos2unix Hello.txt)

转自http://www.233.com/linux/fudao/20110118/140003976.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux dos