
bash
January 10, 2019
How to nest commands in bash
To use nested commands in bash you can surround the child command with backticks ` or ${}
Code examples
echo "10"
10
echo "my id is: $(echo "10")"
my id is: 10
Thanks for reading!

To use nested commands in bash you can surround the child command with backticks ` or ${}
echo "10"
10
echo "my id is: $(echo "10")"
my id is: 10
Thanks for reading!