Unix newlines to Windows newlines (on Windows)

后端 未结 11 1840
失恋的感觉
失恋的感觉 2020-12-01 05:44

Is there a way (say PowerShell, or a tool) in Windows that can recurse over a directory and convert any Unix files to Windows files.

I\'d be perfectly happy with a wa

11条回答
  •  借酒劲吻你
    2020-12-01 06:11

    download vim, open your file and issue

    :se fileformat=dos|up
    

    Batch for multiple files (all *.txt files in C:\tmp - recursive):

    :args C:\tmp\**\*.txt
    :argdo se fileformat=dos|up
    

提交回复
热议问题