How to write and execute shell script on macOS | Shell script tutorial