source: trunk/essentials/sys-apps/gawk/test/splitdef.awk

Last change on this file was 3076, checked in by bird, 18 years ago

gawk 3.1.5

File size: 154 bytes
Line 
1BEGIN {
2 data = "abc:easy:as:one:two:three"
3 FS = ":"
4 FIELDWIDTHS = "3 1 4 1 2 1 3 1 3 1 5"
5 n = split(data, a)
6 printf "n = %d, a[3] = %s\n", n, a[3]
7}
Note: See TracBrowser for help on using the repository browser.