carriage return/line feeds

Hello,

I have a file that has got carriage returns in it and I want to take them out. Anyone know how I can do this in a ksh?

thanks

What comes to mind is unix2dos filename newfilename

Try that..

Brian

unix2dos is not universally available. Check out the man page for "tr", especially the "-d" option.

Thank you both for your replies the tr -d option is exactly what I need.

I don't have "dos2unix", but need to convert a unix file to dos format. tr doesn't work. Any ideas on how to do this?

Thanks!