I have following array
arg[1]=mks
value[1]="12 ds"
arg[2]=bsk
value[2]="ds 54"
arg[3]=dkd
value[3]="dd 65"
I don't want to use any other variable or an array and I want to generate the command dynamically for n number of values in below format
command mycommand /path/location ${arg[1]}="${value[1]}" ${arg[2]}="${value[2]}" ...
How to do this?