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 command:
sed -i '' -E 's/^M//g'
this tr command: (which even if it worked I wouldn't want since I want to do in place editing)
tr -d '^M'
and this perl command:
perl -pi -e 's/^M//g'
But none of those changed the contents.
ctrl-V, ctrl-M, not simply typing^M. – David Betz Jan 27 '16 at 23:23