1.在windows下,使用notepad++,将文件格式改为unix就可以了

2.在linux下,使用vim打开文件,使用:set ff查看文件格式,你会发现其格式是dos的,然后我们使用:set ff=unix就可以将文件格式改为unix,如果不放心,可以使用:set ff查看,就会发现文件格式已经变为unix,最后保存退出即可。

3.命令转换

dos2unix     filename.txt

相关文章:

  • 2022-01-03
  • 2022-12-23
  • 2021-07-30
  • 2021-12-11
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-15
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
  • 2021-06-09
  • 2021-11-18
  • 2021-10-12
相关资源
相似解决方案