in reply to Removing Windows newlines

Always nasty, them windows newlines

I always use a simple bash script to take care of this problem. It's not pretty, but it works for me.

usage:
ctrlm.sh oldfile.txt >newfile.txt

#!/bin/bash #ctrlm.sh cat $1 | tr -d "\015"

Teabag
Sure there's more than one way, but one just needs one anyway - Teabag