Hi,
I am trying to redirect my output to a file and need to first put a command into a string. Here is the error:
Code:
bash-3.2$ cc="(date && time ls -l -a && date) > ./tmp/log"
bash-3.2$ $cc
bash: (date: command not found
What's wrong?
Thanks and regards!