I was able to resolve this issue myself, i don'tbut I wouldn't call it a straight forward approach.
Since Since awk works in linuxLinux, but not nawk, iI created a soft link in linuxLinux host to redirect nawk to awk.
Now i Now I can use nawk in both solarisSolaris and linuxLinux without any issues.
ln -s /bin/awk /bin/nawk