diff --git a/README.md b/README.md index 4c89438..fea08de 100644 --- a/README.md +++ b/README.md @@ -987,6 +987,14 @@ echo ${var,,} helloworld ``` + +##### Expand and then execute variable/argument +```bash +cmd="bar=foo" +eval "$cmd" +echo "$bar" # foo +``` + ## Math [[back to top](#handy-bash-one-liners)] ##### Arithmetic Expansion in Bash (Operators: +, -, *, /, %, etc)