If you transferring any script file, plain files or text files between windows and SunOS Server and the file have ^M or nonwished characters you can resolve this issue following the next process:
1.- Open the file using vi editor vi file.txt
2.- type the next command [space] :%!col -bx [enter]
3.- and close and save file.txt file
The issue has been resolved.!!
By Jacosta