Table of Contents

What is Variable Expansion in Bash ?

About

variable expansion is an expansion that replaces a variable expression by its value.

Example

Prerequisite: We set the value of the variable foo to bar to perform the expansion

foo=bar 



Example:

echo ${foo}
echo bar

that outputs to the console

bar