This is a discussion on "unroll" a matrix in awk: loop behaviour within the Linux General forums, part of the Linux Forums category; How do I impliment looping behaviour in awk. I have a matrix in a text file that I need to &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |