Hello friends off late i have been doing some c programs,i used indent utility to indent all my C source code files in one go like this
indent -gnu *
Now when i open any of these files in vi editor,i can see it properly indented,but there are many ^M characters in the file,which are quite distracting.
How can i remove all those ^M characters now?
I tried like this in last line mode of vi
:%s/^M/" "
But it just did not work.
please help me folks