For every set of i in $1, I'd like to have the first element of $2 appear in the remaining elements of $2. This process would repeat for each i in $1.
I.e.:
The data looks roughly This is what I'd like to have it look like:
like this:
2 30 2 30
2 0 2 30
2 0 2 30
2 0 2 30
2 0 2 30
2 0 2 30
3 23 3 23
3 0 3 23
3 0 3 23
3 0 3 23
3 0 3 23
5 28 5 28
5 0 5 28
5 0 5 28
5 0 5 28
6 20 6 20
6 0 6 20
6 0 6 20
. .
. .
. .
I.e.:
The data looks roughly This is what I'd like to have it look like:
like this:
2 30 2 30
2 0 2 30
2 0 2 30
2 0 2 30
2 0 2 30
2 0 2 30
3 23 3 23
3 0 3 23
3 0 3 23
3 0 3 23
3 0 3 23
5 28 5 28
5 0 5 28
5 0 5 28
5 0 5 28
6 20 6 20
6 0 6 20
6 0 6 20
. .
. .
. .