Posts

Showing posts with the label bash

Bash: Run a command stored in a variable

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