Using kernel 2.6.x
This is to complete a solution from a previous question - How to iterate through a variable while skipping one of the values?.
How can you extract a value, by position, from two variables and concatenate them into a third value with the same positions ?
On this OS, non-sh shells are installed as Entware-NG packages and can't be used since they load after the script runs. As a result, the solution needs to be based on a Posix sh as it is the only shell available when the script runs.
For example, use the following variables ...
NETID="10 20 30" NAME="eth1 eth2 eth3"
... and create a third variable with the following values.
NETS="eth1:10 eth2:20 eth3:30"