in reply to formats output \r\n question

Or you could pipe the output of your script through unix2dos.

But that's the lazy unix shell programmer in me coming out. Coming up with the right output to begin with is probably more right (as opposed to spawning a whole new process just for line endings :-)