I have an array that consists of the following: -
d23 d3 d21 d1 d20 d0 d26 d6
I want to repeat the same for every two elements of the array. For example:
echo d23 d3
And then move on to the next two elements:
echo d21 d1
I've attempted a combination of while loops and shift to avail. Any help and advise would be much appreciated.