Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

shell script current time

#!/bin/bash
now="$(date)"
printf "Current date and time %s
" "$now"
 
now="$(date +'%d/%m/%Y')"
printf "Current date in dd/mm/yyyy format %s
" "$now"
 
echo "Starting backup at $now, please wait..."
# command to backup scripts goes here
# ...
Comment

PREVIOUS NEXT
Code Example
Shell :: Show history in powershell across the sessions 
Shell :: iptables list ubuntu 
Shell :: openssl version command 
Shell :: yii2 advanced install 
Shell :: find npmrc file ubuntu 
Shell :: pip command to install xlrd version 1.2.0 
Shell :: remove yarn ubuntu 
Shell :: mongodb list users 
Shell :: centos dig 
Shell :: sudo user centos 
Shell :: The upstream branch of your current branch does not match the name of your current branch. 
Shell :: git soft reset Head 
Shell :: how to add remove origin url 
Shell :: brew restart apache 
Shell :: pip install psycopg2 error fedora 
Shell :: Git commit ignore pre-commit hooks 
Shell :: mui version check 
Shell :: skype linux install 
Shell :: dev/kvm device permission denied 
Shell :: install gdal ubuntu 
Shell :: ubuntu install nginx 
Shell :: install pygame on mac 
Shell :: git replace master with branch 
Shell :: check ip address mac 
Shell :: macbook how to reset launchpad 
Shell :: git sync local branch with remote 
Shell :: remove blender ubuntu 20.04 
Shell :: install sticky notes in ubuntu 
Shell :: bash for file in folder 
Shell :: how to install mysql python 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =