If you edit a shell script in windows

Remember replace “\r\n” with “\n” after you finish. Otherwise you will some errors that you won’t understand, such as

: not found ./hi.sh: 
Hello World
: not found ./hi.sh: }
: not found ./hi.sh: 
: not found ./hi.sh: {

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.