Shell / Commands

Command Substitution

English

Overview

A feature for embedding one command's output as part of another command.

Details

A feature that expands a command's standard output into a string on the spot, using the $() syntax or backticks. It lets another command's output be embedded like a variable, similar to writing 'echo Today is ' followed by a date command in parentheses.

More Linux terms