Practice
Variables can be divided into two categories:
What do I mean by "dynamic" variables?
For example, we have 3 variables:
first_var='Number1'
second_var='Number2'
third_var='Number3'
and a variable that sets what the first part of the name of the variable we need should be:
type='second'
How can we, in bash and sh scripts, use the type variable (or any other) like this in order to dynamically reference some other variables?
Here's a piece of example solution code:
Here we can see that we:
How to view environment variables? what command can be used to output the value of all unix environment variables?
We can see the list of all our environment variables using the commands env or printenv

How to view shell variables?
For this you can use the set command. If we enter set without any additional parameters, we get a list of all shell variables, environment variables, local variables and shell functions:

Other constructs can be created in a similar way.
Comments