How can I remove ^M
characters in Emacs?
It doesn't work using dos2unix filename
or unix2dos filename
.
Normally I cannot see any ^M
characters, but this is what came out when using the command cat -A filename
:
Please explain it in plain words... and in detail...
cat -A ABC.sh
#!/bin/csh -f^M$
^M$
^M$
set input = `ls -1 *.py`^M$
echo $input^M$
dos2unix
should convert that. What output does it give you? – Ad