Command substitution

To include the output from one command within the command line for another command, enclose the command whose output is to be included within `backquotes`. For example:

   echo The date today is `date +%d/%m/%y`
   The date today is 17/05/95

The output from the command date +%d/%m/%y is substituted at the appropriate location within a command line that uses the echo command.


[Home] [Search] [Index]