Bash Parameter Expansion
October 04, 2008 (9:00:00 AM) - 1 month, 4 weeks ago
Share
a>
Print
Comments
If you use bash you already know what Parameter Expansion is, although you may have used it without knowing its name. Anytime you use a dollar sign followed by a variable name you're doing what bash calls Parameter expansion, eg echo $a or a=$b. But parameter expansion has numerous other forms which allow you to expand a parameter and modify the value or substitute other values in the expansion process.