#!/bin/sh
d=`date +%d`    #Assign the numeric day of the month to variable $d
m=`date +%m`	#Assign the numeric month of the year to variable $m
y=`date +%y`	#Assign the two-digit year to variable $y
Y=`date +%Y`    #Assign the four digit year to variable $Y
T=`date +%T`	#Assign the current time (in 24hr format) to the variable $T
a=`date +%a`	#Assign the locale's abbreviated day to variable $a	
A=`date +%A`	#Assign the locale's full weekday name to variable $A
b=`date +%b`	#Assign the locale's abbreviated month name to variable $b
B=`date +%B`	#Assign the locale's full month name to variable $B
c=`date +%c`  	#Assign locale's date and time ex: Sat Nov 04 12:02:33 EST 1989 to variable $c
D=`date +%D`    #Current date (mm/dd/yy) assigned to variable $D
e=`date +%e` 	#Day of month (numeric) w/o 0: aka 4 rather than 04 to variable $e
H=`date +%H`	#Assign current hour to variable $H (in 24 hour format) two decimal places (aka 03)
I=`date +%I`	#Assign current hour to variable $I (in 12 hour format) two decimal places (aka 02)
j=`date +%j`	#Assign current day of year (x/365) to variable $j
k=`date +%k` 	#Assign current hour to variable $k in 24 hour format (one decimal place) aka 3
l=`date +%l`	#Assign current hour to variable $l in 12 hour format (one decimal place) aka 2
M=`date +%M`	#Assign current minute to variable $M (two decimal places)
p=`date +%p`	#Assign am or pm to variable p
r=`date +%r` 	#Assign 12 hour time format (hh:mm:ss [AP]M) with AM/PM stamp
s=`date +%s`	#Seconds since Midnight, January 1970 (EPOCH - creation of unix to variable $s
S=`date +%S`	#Assign seconds (00..60) to variable $S
t=`date +%t`	#Assign a horizontal tab to variable $t
n=`date +%n`	#Assign a new line to variable $n
T=`date +%T`	#Assign the time in 24 hour status (hh:mm:ss) to variable $T
U=`date +%U`	#Assign the number of the current week to variable $U, Sunday as first day of week
V=`date +%V`	#Assign the number of the current week to variable $V, Monday as the fisrt day of the week
w=`date +%w`    #Assign the day of the week (in number format) from 0 to 6 (0=Sunday) to variable $w
W=`date +%W`	#Assign the week number of year (with Monday as first day of week) to variable $W
x=`date +%x`	#Assign the locale's date representation (mm/dd/yy) to variable $x
X=`date +%X`	#Assign the locale's time representation (%H:%M:%S) to variable $X
z=`date +%z`	#Assign the RFC-822 Style numeric timezone (-0500) to variable $z
Z=`date +%Z`	#Assign the time zone in human readable format (aka EDT) or nothing if no time zone is determinable

current_date="$Y/$m/$d/"  				#Assign the current date to $current_date
ed - /dev/null/index.html <<STOP_NOW  			#Execute ed on <file> and stop executing when it reaches STOP_NOW
26d  							#delete line 26
26i							#Insert line 26
$current_date						#Input value of $current_date
.							#Stop inputting current value
w							#Write the file
q							#Quit
STOP_NOW						#Stop this script
