Using variables

You can think of shell scripts as programs made up of shell commands. To allow more versatile shell scripts, the shell supports many of the features of normal programming languages.

In a conventional programming language, a variable is a name that has an associated value. When you want to use the value, you can use the name instead.