Remove carriage return in Unix

后端 未结 21 2580
傲寒
傲寒 2020-11-22 03:40

What is the simplest way to remove all the carriage returns \\r from a file in Unix?

21条回答
  •  情话喂你
    2020-11-22 04:04

    Here is the thing,

    %0d is the carriage return character. To make it compatabile with Unix. We need to use the below command.

    dos2unix fileName.extension fileName.extension

提交回复
热议问题