I have a .csv with special characters that are wrecking an import I need to do.
In VIM, I discovered away to remove the special characters with :
^M from some of my broken lines.
But I'd like to either write this into a bash script, or into my ruby script. So I was curious if there's a way I can perform this special character search and replace in either Bash or Ruby.
^M does not work. And also you wouldn't see this character in any text editor except for VIM.