gawk: Skipping intervening
1
1 4.6.2 Skipping Intervening Fields
1 ---------------------------------
1
1 Starting in version 4.2, each field width may optionally be preceded by
1 a colon-separated value specifying the number of characters to skip
1 before the field starts. Thus, the preceding program could be rewritten
1 to specify 'FIELDWIDTHS' like so:
1
1 BEGIN { FIELDWIDTHS = "8 1:5 4:7 6 1:6 1:6 2:33" }
1
1 This strips away some of the white space separating the fields. With
1 such a change, the program produces the following results:
1
1 hzang ttyV3 50
1 eklye ttyV5 0
1 dportein ttyV6 107
1 gierd ttyD3 1
1 dave ttyD4 0
1 brent ttyp0 286
1 dave ttyq4 1296000
1