|
hi to all
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.
any suggestions....
thanks
|