Within bash parameters, there are named spaces in the memory that allow us access to stored values. There are two types of parameters:
- Variables
- Special parameters
Within bash parameters, there are named spaces in the memory that allow us access to stored values. There are two types of parameters:
We already described what variables are and how to define them in Chapter 1, The What and Why of Scripting with Bash.
Just to refresh your memory, you can define a variable by assigning a value with an equals sign and without any spaces like this:
#!/bin/bash
myvar=15
myvar2="welcome"
So nothing new here.
Special parameters are the second...