Bash: Run a command stored in a variable

$ cmd="echo foo{bar,baz}"
$ $cmd
foo{bar,baz}
$ eval "$cmd"
foobar foobaz

Reference

Comments

Popular posts from this blog

Play octoshape stream on windows with VLC player

Using PlayStation 1 Densha de Go controller on emulators

Sleeping dogs definitive edition + xbox360ce