sed Delete / Remove ^M Carriage Return (Line Feed / CRLF) on Linux or Unix
In Linux or Unix, the sed command can be used to remove the ^M character (carriage return) from a file, which is often seen when files are transferred between Windows and Unix systems. Here’s an example sed command that removes the ^M character from a file: sed -i ‘s/\r//’ file.txt In this command, the -i … Read more