About
To execute a command in a script
- command substitution with:
- $( ) in a subshell
- backticks `` in the same shell
- Bash - eval (Execute its argument) from a string in a subshell
- xargs from standard input
See also: Bash - Script Execution
List
$(expression)
You can execute an expression inside an input with $(expression). See What is a Subshell in Bash?
echo $(date +"%Y%m%d")
20161027
xargs
Bash - Xargs (Standard input command execution) execute commands from standard input.
Others
See also: