While writing shell scripting in Ubuntu, Windows and deploying it in *NIX based machine, we found some issue. That the file running perfectly on the Ubuntu (Linux), Windows machine. The same script was displaying errors like
'\r': command not found
^M: command not found
There was a formatting issue. You need to run the following command to resolve it.
sudo apt-get install tofrodos
To know more about this you can go through References.
If you have any further queries, please add your comments. You can also mail to email@example.com