消除vim中的^M的几种方法

11:06:00 PM 0 Comments


1)dos2uninx filename 
2)sed -e 's/^M//' filename
3)vim中 :s/^M//gc
4)col -bx < dosfile > newfile
5)tr -s "\r\n" "\n" < file > newfile

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard.