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

unix2dos

相关命令:暂无相关命令
unix2dos [-kn] file [newfile]
选项与参数:
-k  :保留该档案原本的 mtime 时间格式 (不更新档案上次内容经过修订的时间)
-n  :保留原本的旧档,将转换后的内容输出到新档案,如: dos2unix -n old new
root@www vitest]# unix2dos -k man.config
unix2dos: converting file man.config to DOS format ...
# 屏幕会显示上述的讯息,说明断行转为 DOS 格式了!
[root@localhost zhangy]# unix2dos test.sh 
unix2dos: converting file test.sh to DOS format ...
 

[root@localhost tmp]# unix2dos -q -k -n man_db.conf /tmp/man_db.conf.linux
[root@localhost tmp]# ll
总用量 16
-rw-r--r--. 1 root root 5171 6月  10 2014 man_db.conf
-rw-r--r--. 1 root root 5302 6月  10 2014 man_db.conf.linux

评论(0)

暂无评论

评论

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