TexPad is creating it. I know that it is under some deadkey. I just cannot remember it is name.
The blue character:
I just want to mass remove them from my document.
How can you type it?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
It is known as carriage return.
If you're using
vim you can enter insert mode and type CTRL-v CTRL-m. That ^M is the keyboard equivalent to \r.
0x0D in a hex editor will do the task.
How to remove?
You can remove it using the command
perl -p -i -e "s/\r//g" filename.
As the OP suggested in the comments of this answer here, you can even try a
dos2unix filename and see if that fixes it.
As @steeldriver suggests in the comments, after opening the vim editor, press esc key and type
sed -i 's/^M//' filename.txt
^M in the command, do not use
shift+6 & M.
You should use
you can also do this with sed
sed -i "s/\r//g" filename
As Ramesh notes, CTRL+V CTRL+M should get you the literal character - though you're not limited to doing this only in
vim - you should be able to do the same on any canonical mode tty.
cat ./file | tr -d '\r' >./file
...might do the job.