There's a tool similar to it called flip available in the debian repositories, so it's probably also in *buntu.
You can also simply use sed to convert the line endings.
This page includes the proper code (about one page down), along with many other useful one-liners.