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:
Be Careful registering an order with the: X=$(Command)
X=$(Command)
This one is still executed Even before being called. To check and confirm this, you cand do:
echo test; X=$(for ((c=0; c<=5; c++)); do sleep 2; done); echo note the 5 seconds elapsed