Sid1987
9 years agoLevel 6
Next Due List
Hi Techiz,
Do you have a shell script handy to create an html or csv to display next due of policies for entire month day date wise, I have the code for displaying horizontally the day & date of entire month, What I am looking for is if for an entire month I can have daywise entries (x,F,Blank) meaning x if the policy is scheduled for that day, full if that's full backup day, and blank in case there is any exclusion. Here is the code for entire month display which can be used.
#!/bin/ksh93
yearmonth=$( date +"%Y%m" )
d=1
while printf '%(%a)T\t' "$( printf '%s%02d' "$yearmonth" "$d" )" 2>/dev/null
do
(( ++d ))
done
echo
days_this_month=$(( --d ))
while (( d > 0 )); do
printf ' %d\t' "$(( days_this_month - (--d) ))"
done
echo