Re: 请教各位如何解决这个问题# Software - 软件世界
xg
1 楼
1. use asc to transfer file then no '^M'
2. if files in unix have '^M', many method to convert it to unix formt
1)use vim open the file
:set filemode=unix
:wq
2)use plain vi
:%s/^V^M//g
:wq
(note:^V=Ctrl-V,^M=Ctrl-M)
3)use dos2unix
dos2unix< dos_file > unix_file
4)use tr
tr -d '\r'
....
I like use vi/vim,you need not create another file to save the converted
file.
But if you have many files need to be con