Help needed passing string to command

hi to all

code:
</div>
command... "command_name arg1 arg2 option=xxxxx"
example --- useradd username group=xxxxxx.
</div>

when someone ran this command it point to some other script (say script1), mean post execution of command.

in the script1 i need only "xxxxx" value. then i differentiate using case statement.
anyone have idea how to pass value to the script.

thanks

I renamed the subject, but I have no idea what you are asking. Can you please re-phrase your question?

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

Are you writing the "nu" script? And you are trying to figure out how to handle default arguments? is that correct?

hi

nu is the command in security application side.
they are the only ones to create the users.

any suggestions...

thanks

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?