Text file with ^M on each line

后端 未结 3 1280
萌比男神i
萌比男神i 2020-12-28 22:11

I just got a source code file from a friend. The file was created in UNIX. When I opened it in Windows using NotePad++, each line had one extra blank line.

Puzzled,

3条回答
  •  猫巷女王i
    2020-12-28 22:28

    its a windows artefact. You have 2 options

    1. Use an editor where you can specify the save format
    2. Use dos2unix on a unix like system to convert

提交回复
热议问题