$(command)
or`command`
- Command substitution allows the output of a command to replace the command itself.
- Useful to assign output of a command to a variable
#### Demo 1
bash ./examples/subshell/command_substitution.sh
#### Demo 2
bash ./examples/subshell/assingment_to_var.sh
#### Demo 3
bash ./examples/subshell/stderr_redirection.sh
### References