I want to make a bash string of commands with redirect and/or pipe, and use it to either display the string of commands or execute the string of commands. A simple command witho
If you want the shell to evaluate the string as a command, tell it to do so:
eval "$command" echo "$command"