Linux下去掉Windows的^M的方法
转自: https://blog.csdn.net/shouldnotappearcalm/article/details/64904253
命令:
- dos2unix filename
- sed -i 's/^M//g' filename
- :1,$ s/^M//g
- cat filename |tr -d ‘/r’ > newfile
说明如图:
写满200篇博文再说
转自: https://blog.csdn.net/shouldnotappearcalm/article/details/64904253
命令:
说明如图: