Just execute the following in your file. In this example the file I will modify is called file.txt.

sed -i.bak 's/\r$//' file.txt

 

 

Good luck!


Discover more from Humberto Ramos, PhD

Subscribe to get the latest posts sent to your email.

Leave a comment

Trending

Discover more from Humberto Ramos, PhD

Subscribe now to keep reading and get access to the full archive.

Continue reading