ANDREAS SCHIPPLOCK
Programmer, Linux user since ~2000.


Bash Variables

Like (probably) every other programming or scripting language, in BASH you can define variables and use them throughout your program.

Define Variables


#!/bin/bash
foo="bar"
echo ${foo}
echo $foo
With ${} you can define and use variable names that start with a . (dot), an underline or even digits.