mac how to execute bash script code example Example: run sh from terminal mac chmod +x fileName bash fileName