How Do I Remove M Characters from a Unix File?
Contents

Where is the control M character in Unix?

Note: Remember how to type control M characters in UNIX, just hold the control key and then press v and m to get the control-m character.

What is control M character in Linux?

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. Inserting 0x0D in a hex editor will do the task.

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest