PDA

View Full Version : [Bash] execute string as command


michael_hk
06-26-2006, 05:51 AM
Hi,

I am trying to execute a string as command.


txt="echo \"abc\""
`$txt`

result

./test.sh: line 2: "abc": command not found


What am I doing wrong?

Thanks.

Michael