- Like most programming languages, the shell allows items to be stored in variables.
- All shell variables store strings.
- A variable is set using:
NAME=VALUE
- The variable name should start with a letter but can contain numbers and underscores
- The value of a variable can be returned/used by adding a prefix
$
- Examples:
$ var1=im1.nii.gz
$ echo $var1
  im1.nii.gz
$ echo var1
  var1
$ ls $var1
  im1.nii.gz
|
|