Command substitution is nothing but run a shell command and store it's output to a variable or display back using [[echo command]]. For example, display date and time: | Command substitution is nothing but run a shell command and store it's output to a variable or display back using [[echo command]]. For example, display date and time: |