I would like to store a command to use at a later period in a variable (not the output of the command, but the command itself)
I have a simple script as follows:
For bash, store your command like this:
command="ls | grep -c '^'"
Run your command like this:
echo $command | bash