Amazon Great Offers

July 18, 2012

Text Formatting in *NIX to run Script files of Different Platforms

Hello all,

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

dos2unix filename


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
Post a Comment

Featured Post

Java Introdcution

Please send your review and feedback to