If you don't have
dos2unix (I don't), you may want to consider using the
tr utility (translate or delete characters) to replace the carriage returns with line feeds rather than simply deleting them (you can do that with
tr too); from your example, it looks like you may want to translate rather than delete.
To do this, try
tr [\r] [\n] < oldfile > newfile. Try it on a messy file and see if what you get is what you want. Then you can do something like this to clean up all of them:
Code:
#!/bin/sh
for file in *
do
tr [\r] [\n] ${file} > tmpfile
mv tmpfile ${file}
done
Hope this helps.