[Tutorial] Create shell autoscript on MAC OS without Automator

In the MAC OS, we usually use Automator for create auto script, but isn't effective and simple for newbie.
In this tutorial, we'll create a file script same *.bat file in Windows OS, that is script click and run.

Step 1. Start Termial
Step 2. Create script file:
nano chungkol.shell
Example of content:
mkdir ~/Desktop/chungkol
Step 3. Set permisson for that script:
sudo chmod +rx chungkol.shell
Step 4. Alway Open with Termial
Right click on that file and choose Open with/Other/Utilities/Termial
Now, you can double click on file chungkol.shell and wait for scrip running