Output your finger data to : users.raw
Add this line to your script as well:
awk -f formatu.awk < users.raw > users.report
vi a file called formatu.awk in whatever directory you are working and cut and paste the following awk script:
/^Login / {daname=$3;next}
/^Directory/ {dadir=$2;next}
/^Never / {dalast="Never"
printf("%-9s %-40s %-s \n", daname, dadir, dalast);
next}
/^Last login/ {dalast=$3" "$4" "$5" "$6;
printf("%-9s %-40s %-s \n", daname, dadir, dalast);
next}
Double check to make sure that the full printf lines are on one line in the file and that should do it.