I wrote a bash script under CentOS and it performed well. On the other computer, this was wrong. At first I forgot about the shibang, but why was it good on my computer? I guess this is a very newbie, but I tried. Thank.
Updated: Another question has arisen. What is the difference between executing with ./filename.sh and sh filename.sh ?
source
share