My fascination with Bash Shell Scripting started just 3 months ago. Prior to that, I never had any knowledge with what and how to bash. It has proven to be a powerful tool to help you automate basic routine tasks.
My first encounter with bash was when my lead developer told me to create a simple cronjob to execute a SQL script to import into the database. With limitations from the SQL like variable value replacement from a random source, SQL just couldn't do the job. That is when I "discovered" bash shell scripting. From then on, my journey with bashing through the terminal started.
As a UNIX Linux user, I do basic shell commands like
cd. I know just the ordinary commands from my bachelors but never have I thought you could do all sorts of basic algorithm constructs just like how a programming language would from handling files, array declaration, string replacement and down to looping, conditional statements and the like.
Learning to Bash, by
bash I mean
shell scripting, is intimidating but it is actually easy than it looks. Though, I must say developers with limited programming background might not be for bash. Learning Bash has a shallow learning curve.
Shell scripting allows us to extensively use the shell's abilities and automate a lot of tasks that would otherwise require long and complicated commands. It really does save time when you automate routine tasks like monthly backup compression or SQL import.
This article is the first part to my Bash tutorial posts. I hope you will not only enjoy but also will learn a thing or two from my Bash Shell Scripting tutorials soon.
But before you go, have you used Bash Shell Scripting yourself?
This series of posts document a high-level process to use when planning a modern web application, from project organization, collaboration considerations and tooling choices during development, all the way through deployment and performance strategies.