Beginner Tips: Bad interpreter – no such file or directory

Sometimes when you run your script there was an error like this:Thats because there are one or many ^M character in your script for every newline. This is because you make/edit your script in Windows environment. Text documents that come from a Windows system won’t always play nice in Linux. The converse is true however. If you create a text file in Linux, many programs will fail to recognize the single LF as a newline and will render the document without any line breaks.To fix that … Read more...