I have two "identical" files that I compare in diff, and it shows that every line is different, after looking at the file I found that one of them has
^M at the end of every line. How do I remove this? I tried this
sed -i '' -E 's/^M//g'
tr command: (which even if it worked I wouldn't want since I want to do in place editing)
tr -d '^M'
perl -pi -e 's/^M//g'
But none of those changed the contents.