I ran in shell:
#! /bin/bash
log=monday
echo "Today is $log"
echo "Today is 'date'"
but the result is : Today is monday Today is 'date'
How do I make it display the day and date. Thank you for searching。
|
I ran in shell:
but the result is : Today is monday Today is 'date' How do I make it display the day and date. Thank you for searching。 |
||||
|
|
|
The reason why you are echoing the literal string To ensure that you echo the output of i.e.
This will output:
|
|||
|
|