in reply to can't see ^M to process.

If you still have them on windows you can FTP (or scp) them across using ASCII as the file type. This will automatically translate the carriage returns.

Optionally check out dos2unix which ships with Solaris.