^M (CTRL + M). To remove this at each line you can use vi. In vi you can escape a control character by preceeding it with a ^V (CTRL + V). Now using the search and replace command you can easily change the ^M (CTRL + M) in all lines. Change vi to the escape mode and type
%s/^V^M//gCTRL+V and CTRL+M, this will look on your screen as:
%s/^M//g
Tags:
