开源是一种精神,分享是一种美德!

dos2unix

相关命令:unix2dos
用法: dos2unix [-hkqV] [-c convmode] [-o file ...] [-n infile outfile ...]


 -h --help        帮助
 -k --keepdate    保持时间戳一致
 -q --quiet       安静模式,禁止所有警告
 -V --version     显示版本
 -c --convmode    转换模式 
 convmode         ASCII, 7bit, ISO, Mac, default to ASCII
 -l --newline     除MAC模式外,新增一行
 -o --oldfile     写旧文件
 file ...         转变成旧文件
 -n --newfile     写新文件
 infile           原始文件
 outfile          输出文件

[root@localhost test1]# dos2unix -n 1.dat 1.sh      #将1.dat转换成1.sh
dos2unix: converting file 1.dat to file 1.sh in UNIX format ...

评论(0)

暂无评论

评论

名字:
验证码:
获取验证码
内容: