Substitute "Mac" newlines with unix ones

At work we have been struggling with bad newlines in php-pages created with dreamweaver on a Mac. The newlines screwed up grep results and was mainly just one big pain in the ***. This is a little note to my self about how to solve it.

This solution (parsed around by one of the guys at work, thanks Frank) should be carved in stone to be remember for eternity. The second best would be writing it on the Internet and I don’t have any stones not already written on at the moment:

tr '\r\n' '\n'  OUTPUTFILE