Article
home/blog/Loading

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