linux文本文件格式转换



linux文本文件格式转换
 
使用od -c -t x1 abc.txt 查看文本文件里的特殊字符,
DOS/Windows使用/r/n作为行尾符,Unix使用/n 
 
unix2doc < unix.txt > dos.txt 将Unix格式的纯文本文件
转换成DOS/Windows格式的纯文本文件 
  www.2cto.com  
dos2unix < dos.txt > unix.txt 将DOS/Windows格式的纯文本
文件转换成Unix格式的纯文本文件 
 
apt-get install dos2unix
 
 
作者 i-david

相关内容

    暂无相关文章