Command substitution

Command substitution is the process by which shells replace a command (optionally provided with arguments) by its output. The bash shell recognizes two formats for command substitution: the traditional back-quoted `command` and the bash-specific $(command). The former is now deprecated but is still often used.