From: Rahul on
How do I impliment looping behaviour in awk.

I have a matrix in a text file that I need to "unroll"

1 2 3
4 5 6
7 8 9

0 0 1
1 0 2
2 0 3
0 1 4
1 1 5
2 1 6
etc.

The inner index is incremented only when a new line is encountered and the
outer index is incremented whenever a field seperator is incountered.

Any sugesstions?

--
Rahul
 | 
Pages: 1
Prev: Swap usage
Next: Promotions et bonus au Rami !!!