Suppose you are working on a very old unix server where dos2unix, perl, tr, and sed are not present. How can you convert files from dos to unix format?
How to remove Ctrl-M from files where dos2unix, perl, tr, and sed are not present?
command line;software rec
I think you are referring to removing the caret-M at the end of lines.  You can use search and replace in vi to do this.In vi I normally do: (where ^ represents CTRL)::%s/^V^M//gWhich shows on the screen as::%s/^M//g