Posts

Showing posts from April, 2016

Bash: Run a command stored in a variable

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