Removed bash let commands as unsupported by sh
Do arithmetic within awk - yuk