Just like in any programming language, you can declare variables in bash scripts. So, what are these variables and what are the benefits of using them?
Well, a variable is like a placeholder where you store some value for later use in your code.
There are two kinds of variables you can declare in your script:
- User-defined variables
- Environment variables