Chinaunix首页 | 论坛 | 博客
  • 博客访问: 89007
  • 博文数量: 71
  • 博客积分: 3000
  • 博客等级: 中校
  • 技术积分: 715
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-07 16:46
文章分类

全部博文(71)

文章存档

2010年(71)

我的朋友

分类:

2010-07-08 23:41:28

Try dos2unix or unix2dos command to do that.

If you don't have dos2unix tool (coz in most unix-like server except linux, there is no dos2unix tool), plz try the following command to change format of file from DOS to UNIX (it could work on most unix-like server):

# cat file | tr -d "\015" > newfile

^C ascii code is \003
^M ascii code is \015

You can view ascii code of all characters by the command on Unix-like server.
# man ascii

阅读(378) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~