About
To execute a command in a script
- backticks in the same shell
- $( ) in a subshell
- Bash - eval (Execute its argument) from a string in a subshell
- xargs from standard input
See also: Bash - Script Execution
Articles Related
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: