📜  dos2unix - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:24.056000             🧑  作者: Mango

代码示例1
#1) (On unix server) Open the file to change in vi or vim (example: vi Filename.cpp)
#2) Run the replacement command in vi (or vim) as follows

:%s/^M$//
#NB: the ^M is 1 character that can be typed by using the following key combinations: [ctrl] + [v]; [ctrl] + [m]