Remove Control M' Characters (^M) with Unix and Linux commands
1) Installation : yum install dos2unix
2) Using dos2unix command
dos2unix ORIG_FILENAME TEMP_FILENAME
mv TEMP_FILENAME ORIG_FILENAME
IMP NOTE: use dos2ux command if you are using HPUX
use dos2unix command if you are using LINUX