I am a novice programmer. I am using unix's join command to self-join couple long files together.join -j30 test test2col1 col2 ... col30    col1 col2 ... col30A    B        ZZZ   ^M A    B        ZZZI am getting this ^M character in my output.Why is it there? and How would I remove it?EDIT:Below is a screenshot of my part of my output
How to fix unix `join` command inserting ^M between join columns? -Unix
osx;join
The ^M means you are bringing over/editing file in Windows.Use the dos2unix command over the files to convert them to Unix text mode.DOS uses carriage return and line feed \r\n as a line ending, while Unix uses just line feed \n. The ^M are a visual representation of the extra \r characters.To install the dos2unix command, do (on Debian-based distros):sudo apt-get install dos2unixor in a Mac (MacPorts):sudo port install dos2unixAlternatively, you can also do it with sed as in:sed 's/\r$//' dosfile.txt > unixfile.txt