{"id":855,"date":"2015-07-28T22:27:11","date_gmt":"2015-07-28T22:27:11","guid":{"rendered":"http:\/\/shivdev.com\/blog\/?p=855"},"modified":"2015-07-28T22:27:11","modified_gmt":"2015-07-28T22:27:11","slug":"remove-m-characters-from-file","status":"publish","type":"post","link":"http:\/\/shivdev.com\/blog\/2015\/07\/28\/remove-m-characters-from-file\/","title":{"rendered":"Remove ^M characters from file"},"content":{"rendered":"<p>The key is to enter <strong>Ctrl+V+M<\/strong> (^M) to simulate this.<\/p>\n<blockquote><p>\non_mac$  <strong>sed -i &#8221; -e &#8216;s\/^M\/\/g&#8217; filename <\/strong><br \/>\non_linux$ <strong>sed -i -e &#8216;s\/^M\/\/g&#8217; filename <\/strong>\n<\/p><\/blockquote>\n<p>This can also be done in vi\/vim, but may not work in Sublime Text type editors.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The key is to enter Ctrl+V+M (^M) to simulate this. on_mac$ sed -i &#8221; -e &#8216;s\/^M\/\/g&#8217; filename on_linux$ sed -i -e &#8216;s\/^M\/\/g&#8217; filename This can also be done in vi\/vim, but may not work in Sublime Text type editors.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[],"_links":{"self":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/855"}],"collection":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/comments?post=855"}],"version-history":[{"count":1,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/855\/revisions"}],"predecessor-version":[{"id":856,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/855\/revisions\/856"}],"wp:attachment":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/media?parent=855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/categories?post=855"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/tags?post=855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}