It produces no errors... and no results.
The code should be finding the shortname and longname for each user from one file, and finding their old user number by matching the long name from the first file, to the one in the second. Then, it should be copying from the old directory to the new one. hopefully, the comments speak for themselves. any and all help welcome. thanks