Command Substitution
Last updated
Was this helpful?
Last updated
Was this helpful?
We can use command substitution so that a variable contains the output of a command, which would normally be output to the screen:
This may look familiar to anyone who has been reading through this aide memoire - remember the section where we created ? We were able to calculate 30 days in advance of the current date with command substitution.
You are only limited by your imagination - rather than list out tonnes of boring examples, have a play yourself and see what results you get within your variables