Linux中去除Windows换行符

sed -e ‘s/^M//’ orig_file > new_file
 

其中^M是这样发生的:ctrl+v之后紧接着ctrl+m

猜你喜欢

转载自jathon-hs.iteye.com/blog/1075560
今日推荐