in reply to Removing Windows newlines
I always use a simple bash script to take care of this problem. It's not pretty, but it works for me.
ctrlm.sh oldfile.txt >newfile.txt
#!/bin/bash #ctrlm.sh cat $1 | tr -d "\015"
Sure there's more than one way, but one just needs one anyway - Teabag