currentDate=$(date +"%m_%d_%Y") currentTime=$(date +"%T") echo "Hello! It is $currentTime on the $currentDate" >> my-log.log