How to remove carriage return in Linux or Unix

How do I remove all the carriage returns \r (^M) from a file in Unix using the command-line options?
The post How to remove carriage return in Linux or Unix appeared first on nixCraft.

How do I remove all the carriage returns \r (^M) from a file in Unix using the command-line options?

The post How to remove carriage return in Linux or Unix appeared first on nixCraft.


Print Share Comment Cite Upload Translate
APA
() » How to remove carriage return in Linux or Unix. Retrieved from https://www.truth.cx/2021/02/02/how-to-remove-carriage-return-in-linux-or-unix/.
MLA
" » How to remove carriage return in Linux or Unix." - , https://www.truth.cx/2021/02/02/how-to-remove-carriage-return-in-linux-or-unix/
HARVARD
» How to remove carriage return in Linux or Unix., viewed ,
VANCOUVER
- » How to remove carriage return in Linux or Unix. [Internet]. [Accessed ]. Available from: https://www.truth.cx/2021/02/02/how-to-remove-carriage-return-in-linux-or-unix/
CHICAGO
" » How to remove carriage return in Linux or Unix." - Accessed . https://www.truth.cx/2021/02/02/how-to-remove-carriage-return-in-linux-or-unix/
IEEE
" » How to remove carriage return in Linux or Unix." [Online]. Available: https://www.truth.cx/2021/02/02/how-to-remove-carriage-return-in-linux-or-unix/. [Accessed: ]
Select a language: