xref: /aosp_15_r20/external/one-true-awk/testdir/t.split3 (revision 9a7741de182b2776d7b30d6355f2585c0780a51b)
1*9a7741deSElliott Hughes{ a = $0 " " $0 " " $0
2*9a7741deSElliott Hughes  if ($1 != "")
3*9a7741deSElliott Hughes      n = split (a, x, "[" $1 "]")
4*9a7741deSElliott Hughes  print n, x[1], x[2], x[3], x[4] }
5