If you need to strip carriage return characters from a text file, you can use Vim:
vim file.txt :set ff=unix :wq