Right, just a really quick post – nevertheless it is a very useful one! You know when you are building code and end up with really annoying Control+M characters in files that you created using Windows … Yeah those ones!
This is how to fix them on your Mac
$ cat foo | col -b > foo2
Where foo is the file that has the Control+M characters at the end of the line, and foo2 the new file you are creating!
Enjoy!
Great Post, you saved my day!
Thx!
I used this command a few weeks ago with great success. Today it only generates an empty file. I’ve done some cleanup on my Mac, but I don’t know of anything that would make this command stop working. It must be a user error, but what?