Scripts save us a lot of time. While scripts are running and doing the work we would have had to do manually, we can drink coffee or talk or just chill! 😃 Here is how you can create a simple script in mac terminal.
Run the following in the terminal:
Paste the following or your own private script:
echo "Hello, world!"
Ctrl + wq
Run the following:
sudo chmod 700 myScript.sh
Run the script by:
My personal scripts run a bunch of git commands all in one script or build an app with different configurations etc. I also have scripts that compile and build an application or more 😉
Happy scripting guys and girls!