BEGIN { n = split("red:green:blue", a, ":"); for (i = 1; i <= n; i++) print i, a[i] }