the below is the command..........
# nu user=xxx os=unix pgroup=xxxxx
i used below line to get the pgroup name.
--> PGRP=$(echo "$@" |cut -f2 -d'=')
if the user use the pgroup option the above syntax works fine.
if the user don't use the pgroup option the above syntax is failing.
if they don't use the pgroup option it should go to default set.
Well, I still don't understand your question. Are you trying to write a "wrapper" script for nu? A script that will invoke nu, but simplified so that your wrapper script takes 1,2, or 3 arguments, and they are passed onto nu if supplied, but if one is not supplied, than a default is used?