Horje
shell script current time Code Example
shell script current time
#!/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
# ...
shell script current time
date +'FORMAT'
 
### mm/dd/yyyy ###
date +'%m/%d/%Y'
 
## Time in 12 hr format ###
date +'%r'
 
## backup dir format ##
backup_dir=$(date +'%m/%d/%Y')
echo "Backup dir for today: /nas04/backups/${backup_dir}"




Shell

Related
How to clone code from your github repository using token authentication Code Example How to clone code from your github repository using token authentication Code Example
oevrride localwith remote branch Code Example oevrride localwith remote branch Code Example
current date bash Code Example current date bash Code Example
git overwrite local branch with remote Code Example git overwrite local branch with remote Code Example
remove all files with extension bash Code Example remove all files with extension bash Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
13