I can convert LF to CRLF using
sed "s/$/`echo -e \\\r`/"
I can also remove all line endings with
perl -pe 's/\r|\n//g'
I created a modified version which I thought would remove only CR from CRLF however it doesn't seem to work, any ideas?
perl -pe 's/\r//g'
Update: The perl script works just not with Apple Mac OS X TextMate editor as it does not display or read \r.