If you have certain lines of code that repeat over and over again in a project, there's a pretty standard solution for it: using a function.
But what about when you have the same project file setup that gets repeated over and over? How do you solve that?
Meet bash scripting. Bash scripts are written to execute certain sequences of commands on your machine automatically without you having to do anything. This is known as workflow automation, and that's what I'll be teaching you how to do in this article.
I was recently setting up a Docker image for Postgres on a few projects I was working on, and I noticed that I was following the same pattern in creating the images. The only difference was that they had different database credentials and database names.
Source: freeCodeCamp News — Read the full article on the original site ↗
