Sorry I'm not going to be much help here. No access to SunOS. Is this Solaris 10 aka SunOS 5.10 or something much older?
Also, can't process the "rar" file in your post.
Possible that the original problem is an awk/nawk issue - maybe an awk specialist can comment on the length of the awk command.
Previous replies about not ending lines with semi-colon (
characters still apply. This is unix shell not Oracle.