I thought that mktime() would require blanks as separators inside the
date-spec and time-spec.
> }
> {
> a = "20" substr($6,7,2) " " substr($6,1,2) " " substr($6,4,2);
> a = a " " substr($7,1,2) " " substr($7,4,2) " 00";
> a = mktime(a);
Using mktime() is unnecessary if you compose your strings in a regular
way with year first, followed by month, and finally day.
> if ((a>= from) && (a<= to)) {
> print $0;
> }
You can formulate that as a simple awk condition (with default action);
there's no need for imperative code.
Janis