With the shell script in Section-A I'm getting the output as shown in Section-B. However the expected/desired output is as shown in Section-C. Need help in modifying the code to get the desired output. 

Section-A: Shell Script

```
#!/usr/local/bin/bash

i=0
a="1234-A1;1235-A2;2345-B1;5678-C2;2346-D5"

IFS="[;]" read -r -a arr <<< "1234-A1;1235-A2;2345-B1;5678-C2;2346-D5"
#printf '%s\n' "${arr[@]}"

for chip in "${arr[@]}"
do
    echo " var $((i++)) is : $chip"
done

```

Section-B: Output of above code

```
 var 0 is : 1234-A1
 var 1 is : 1235-A2
 var 2 is : 2345-B1
 var 3 is : 5678-C2
 var 4 is : 2346-D5

```

Section-C: Desired Output is:

```
var 0 is : 1234 and version is A1
var 1 is : 1235 and version is A2
var 2 is : 2345 and version is B1
var 3 is : 5678 and version is C2
var 4 is : 2346 and version is D5

```