Sometimes if you edit a file in windows and then open it in Linux/UNIX it will have the special characters ^M at the end of each sentence. To fix ^M in Linux/UNIX using vi/vim run the following:
%s/[ctrlkey+v and ctrl-key+M]//g
This entry was posted by redoer on 25/01/2017 at 1:53 am, and is filed under howto, linux, tipsNtricks. Follow any responses to this post through RSS 2.0.
Both comments and pings are currently closed.
Comments are closed.