Skip to content
Search

Command substitution

lastmod 2021-12-08created 2021-12-081 edits

In computing, command substitution is a facility that allows a command to be run and its output to be pasted back on the command line as arguments to another command. Command substitution first appeared in the Bourne shell, introduced with Version 7 Unix in 1979, and has remained a characteristic of all later Unix shells.

bash syntax

$(command)

or

`command`

See also

Favorite site

author Zer0 sitemap