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