Getting started with Bash scripting
A few scripting tricks will help you save time by automating common tasks.
Shell scripts are a lazy person’s best friend. That may sound strange, because writing a shell script presumably takes work, but it’s true. Writing a shell script to perform a repetitive task requires some time up front, but once the script is finished, using it frees up the time the task used to take. In this article, I will introduce you to writing shell scripts with Bash. I’ll describe Bash scripting in the context of several common tasks. Because this is an introductory discussion, some nuances are glossed over or ignored, but I will provide plenty of information for you to get started on your own scripts.