Answers for "shell date year"

1

datetime echo shell script

$(date '+%d/%m/%Y %H:%M:%S')
Posted by: Guest on December-02-2020
5

today's date shell script

#!/bin/bash
now="$(date)"
printf "Current date and time %s\n" "$now"
 
now="$(date +'%d/%m/%Y')"
printf "Current date in dd/mm/yyyy format %s\n" "$now"
 
echo "Starting backup at $now, please wait..."
# command to backup scripts goes here
# ...
Posted by: Guest on August-18-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language