variable logic clarification

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

variable logic clarification

vamsi
I have one script which consists of variables number of parameter and stuckup with following logic

case:1
script:
parameteres are
username,password,P1=v1,P2=v2,P3=v3

case:2
script:
parameteres are
username,password,P1=v1,P2=v2,P3=v3,P4=v4

i will pass username,password for all the script and no of parameters after that is not fixed.It may be 3 or 4 or 5 etc

I want to store rest of parameters in a variable except username and password.

case:1 output

v=-param P1=v1 -param P2=v2 -param P3=v3


case:2 output

v=-param P1=v1 -param P2=v2 -param P3=v3 -param P4=v4