How do I get date and time stored in a bash variable to update when echoing it?

I have this script: date_time=`date “+%Y%m%d%H%M%S”` script_name=`basename “$0″` echo $date_time, $script_name sleep 2 echo $date_time, $script_name exit 1 It shows me this (same time). 20200103114357, clone.sh 20200103114357, clone.sh I need date and time when I call the variable as command. There are 2 seconds between next time, but time is the same. How can I…

Details