It is used to display  the current date.
SYNTAX:  $date
Examples:
$date
$date  +%m (this is used display no.of months)
$date +%h   (this is used to display name of the month)
$date '%h%m'
$date +%y  (used to display last 2 digits of year)
$date +%D  (used to display mm/dd/yy)
 
No comments:
Post a Comment