First page
Back
Continue
Last page
Overview
Command Line Expansion: Command and Math
Command Output -
``
or
$()
Substitute output from a command in a command line
$ echo "Hostname: `hostname`"
Arithmetic -
$[ ]
Substitute result of arithmetic expression in a command line
$ echo Area: $[ $X * $Y ]