Last active 1752986119

Simple variables for the current date and time, great to include in logs for small scripts

Revision a649f5d6ddb24f597f8a9e1b08f3a78388905356

date-time-bash.sh Raw
1currentDate=$(date +"%m_%d_%Y")
2currentTime=$(date +"%T")
3
4echo "Hello! It is $currentTime on the $currentDate" >> my-log.log